parent
1082736d2e
commit
8bd98b9e5c
@ -197,6 +197,8 @@ NICKSERV_REGAIN_COMMAND = "REGAIN {nick}"
|
|||||||
CHANSERV = "ChanServ"
|
CHANSERV = "ChanServ"
|
||||||
CHANSERV_OP_COMMAND = "OP {channel}"
|
CHANSERV_OP_COMMAND = "OP {channel}"
|
||||||
|
|
||||||
|
GUEST_NICK_PATTERN = r"^Guest\d+$"
|
||||||
|
|
||||||
LOG_CHANNEL = "" # Log !fwarns to this channel, if set
|
LOG_CHANNEL = "" # Log !fwarns to this channel, if set
|
||||||
|
|
||||||
# TODO: move this to a game mode called "fixed" once we implement a way to randomize roles (and have that game mode be called "random")
|
# TODO: move this to a game mode called "fixed" once we implement a way to randomize roles (and have that game mode be called "random")
|
||||||
|
@ -3595,7 +3595,7 @@ def on_nick(cli, oldnick, nick):
|
|||||||
prefix, _, ident, host = parse_nick(oldnick)
|
prefix, _, ident, host = parse_nick(oldnick)
|
||||||
chan = botconfig.CHANNEL
|
chan = botconfig.CHANNEL
|
||||||
|
|
||||||
if (re.search(r"^Guest\d+$", nick) or nick[0].isdigit() or (nick != "away" and "away" in nick.lower())) and nick not in var.DISCONNECTED.keys() and prefix in list_players():
|
if (re.search(var.GUEST_NICK_PATTERN, nick) or nick[0].isdigit() or (nick != "away" and "away" in nick.lower())) and nick not in var.DISCONNECTED.keys() and prefix in list_players():
|
||||||
if var.PHASE != "join":
|
if var.PHASE != "join":
|
||||||
cli.mode(chan, "-v", nick)
|
cli.mode(chan, "-v", nick)
|
||||||
leave(cli, "badnick", oldnick)
|
leave(cli, "badnick", oldnick)
|
||||||
|
Loading…
Reference in New Issue
Block a user