Fix bot breaking with fake nicks
(blame @skizzerz)
This commit is contained in:
parent
6a0a0bdbd0
commit
adec2362e4
@ -1171,8 +1171,9 @@ def join_player(cli, player, chan, who = None, forced = False):
|
|||||||
var.USERS[player]["modes"] = set()
|
var.USERS[player]["modes"] = set()
|
||||||
mass_mode(cli, cmodes, [])
|
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))
|
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
|
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
|
# make sure this only happens once
|
||||||
var.JOINED_THIS_GAME.add(hostmask)
|
var.JOINED_THIS_GAME.add(hostmask)
|
||||||
if acc:
|
if acc:
|
||||||
|
Loading…
Reference in New Issue
Block a user