fix DISABLED_GAMEMODES still allowing !join votes
This commit is contained in:
parent
deb1e5ae40
commit
b698f2495a
@ -1230,7 +1230,7 @@ def join(cli, nick, chan, rest):
|
||||
if not match:
|
||||
return
|
||||
gamemode = match
|
||||
if gamemode != "roles":
|
||||
if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
|
||||
var.GAMEMODE_VOTES[nick] = gamemode
|
||||
cli.msg(chan, "\002{0}\002 votes for the \002{1}\002 game mode.".format(nick, gamemode))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user