Fix bot breaking with fake nicks

(blame @skizzerz)
This commit is contained in:
nyuszika7h 2015-09-07 20:18:57 +02:00
parent 6a0a0bdbd0
commit adec2362e4

View File

@ -1171,8 +1171,9 @@ def join_player(cli, player, chan, who = None, forced = False):
var.USERS[player]["modes"] = set()
mass_mode(cli, cmodes, [])
cli.msg(chan, "\u0002{0}\u0002 has joined the game and raised the number of players to \u0002{1}\u0002.".format(player, len(pl) + 1))
if not is_fake_nick(player):
hostmask = ident + "@" + host
if not is_fake_nick(player) and not hostmask in var.JOINED_THIS_GAME and (not acc or not acc in var.JOINED_THIS_GAME_ACCS):
if hostmask not in var.JOINED_THIS_GAME and (not acc or acc not in var.JOINED_THIS_GAME_ACCS):
# make sure this only happens once
var.JOINED_THIS_GAME.add(hostmask)
if acc: