Fix not being able to join fake nicks
Also fix unrelated issue with fake users
This commit is contained in:
parent
8a9d4412d3
commit
70b42dceb6
@ -999,6 +999,8 @@ def fjoin(var, wrapper, message):
|
|||||||
match = complete_one_match(users.lower(s), possible_users)
|
match = complete_one_match(users.lower(s), possible_users)
|
||||||
if match:
|
if match:
|
||||||
to_join.append(match)
|
to_join.append(match)
|
||||||
|
else:
|
||||||
|
to_join.append(s)
|
||||||
for tojoin in to_join:
|
for tojoin in to_join:
|
||||||
tojoin = tojoin.strip()
|
tojoin = tojoin.strip()
|
||||||
if "-" in tojoin and botconfig.DEBUG_MODE:
|
if "-" in tojoin and botconfig.DEBUG_MODE:
|
||||||
@ -1009,7 +1011,7 @@ def fjoin(var, wrapper, message):
|
|||||||
break
|
break
|
||||||
fake = True
|
fake = True
|
||||||
for i in range(int(first), int(last)+1):
|
for i in range(int(first), int(last)+1):
|
||||||
user = users.FakeUser.from_nick(str(i))
|
user = users._add(wrapper.client, nick=str(i))
|
||||||
evt.data["join_player"](var, type(wrapper)(user, wrapper.target), forced=True, who=wrapper.source)
|
evt.data["join_player"](var, type(wrapper)(user, wrapper.target), forced=True, who=wrapper.source)
|
||||||
continue
|
continue
|
||||||
if not tojoin:
|
if not tojoin:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user