Add the ability to "disable" certain game modes

Players can't vote for disabled game modes, but they can still be forced
with !fgame.
This commit is contained in:
nyuszika7h 2015-05-19 10:43:25 +02:00
parent 01a49b9aeb
commit 24d7c1ed5a
2 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@ ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") # glob
OWNERS_ACCOUNTS = ("1owner_acc",)
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_acc")
# Players can't vote for these game modes, but they can still be forced with !fgame.
DISABLED_GAMEMODES = []
ALT_CHANNELS = ""
ALLOWED_ALT_CHANNELS_COMMANDS = []

View File

@ -7236,7 +7236,7 @@ def game(cli, nick, chan, rest):
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))
else: