Skip to content

Commit 96b6773

Browse files
Fix dumb logic breaking /forcepos
1 parent 2585076 commit 96b6773

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

server/commands/character.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,12 @@ def ooc_cmd_forcepos(client, arg):
244244
if pos == "RANDOM":
245245
choices = t.area.pos_lock
246246
# given a list of pos
247-
if "," in pos:
248-
for p in pos.split(","):
249-
choices.append(p.strip())
247+
for p in pos.split(","):
248+
choices.append(p.strip())
250249
# if we received NO choice
251250
if len(choices) <= 0:
252251
choices = ["wit", "def", "pro", "hlp", "hld", "jud"]
253-
if len(choices) == 1:
252+
elif len(choices) == 1:
254253
_pos = choices[0]
255254
else:
256255
_pos = random.choice(choices)

0 commit comments

Comments
 (0)