fix DISABLED_GAMEMODES still allowing !join votes

This commit is contained in:
jacob1 2015-05-20 11:29:02 -04:00
parent deb1e5ae40
commit b698f2495a

View File

@ -1230,7 +1230,7 @@ def join(cli, nick, chan, rest):
if not match: if not match:
return return
gamemode = match gamemode = match
if gamemode != "roles": if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
var.GAMEMODE_VOTES[nick] = gamemode var.GAMEMODE_VOTES[nick] = gamemode
cli.msg(chan, "\002{0}\002 votes for the \002{1}\002 game mode.".format(nick, gamemode)) cli.msg(chan, "\002{0}\002 votes for the \002{1}\002 game mode.".format(nick, gamemode))