Don't say that someone has already joined if they're not logged in

This commit is contained in:
Vgr E. Barry 2017-01-25 21:27:24 -05:00
parent e227e0e958
commit 7bc13937e4

View File

@ -894,7 +894,7 @@ def join_player(var, wrapper, who=None, forced=False, *, sanity=True):
else:
if not botconfig.DEBUG_MODE:
for nick in pl:
if users._get(nick).lower().account == temp.account: # FIXME
if users.equals(users._get(nick).account, temp.account): # FIXME
msg = messages["account_already_joined"]
if who is wrapper.source:
who.send(msg.format(who, "your", messages["join_swap_instead"].format(botconfig.CMD_CHAR)), notice=True)