Browse Source

flastgame disables next-game-starting if used during the joining phase

master
jcao219 14 years ago
parent
commit
1a5e198c72
  1. 8
      wolfgame.py

8
wolfgame.py

@ -1905,6 +1905,12 @@ def start(cli, nick, chan, rest):
return return
if var.ADMIN_TO_PING:
if "join" in COMMANDS.keys():
COMMANDS["join"] = [lambda *spam: cli.msg(chan, "This command has been disabled by an admin.")]
if "start" in COMMANDS.keys():
COMMANDS["start"] = [lambda *spam: cli.msg(chan, "This command has been disabled by an admin.")]
var.ROLES = {} var.ROLES = {}
var.CURSED = [] var.CURSED = []
var.GUNNERS = {} var.GUNNERS = {}
@ -2217,7 +2223,7 @@ def coin(cli, nick, chan, rest):
def flastgame(cli, nick, *rest): def flastgame(cli, nick, *rest):
"""This command may be used in the channel or in a PM, and it disables starting or joining a game.""" """This command may be used in the channel or in a PM, and it disables starting or joining a game."""
chan = botconfig.CHANNEL chan = botconfig.CHANNEL
if var.PHASE != "join":
if "join" in COMMANDS.keys(): if "join" in COMMANDS.keys():
COMMANDS["join"] = [lambda *spam: cli.msg(chan, "This command has been disabled by an admin.")] COMMANDS["join"] = [lambda *spam: cli.msg(chan, "This command has been disabled by an admin.")]
if "start" in COMMANDS.keys(): if "start" in COMMANDS.keys():

Loading…
Cancel
Save