Browse Source

allow !fstart from people who have not joined the game

master
jcao219 13 years ago
parent
commit
b3bbd95171
  1. 8
      modules/wolfgame.py

8
modules/wolfgame.py

@ -304,7 +304,7 @@ def back_from_away(cli, nick, *rest):
@cmd("simple", raw_nick = True) @cmd("simple", raw_nick = True)
@pmcmd("simple", raw_nick = True) @pmcmd("simple", raw_nick = True)
def mark_simple_notify(cli, nick, *rest): def mark_simple_notify(cli, nick, *rest):
"""If you don't want to bot to send you role instructions""" """If you want the bot to NOTICE you for every interaction"""
nick, _, __, cloak = parse_nick(nick) nick, _, __, cloak = parse_nick(nick)
@ -419,7 +419,7 @@ def fleave(cli, nick, chann_, rest):
def fstart(cli, nick, chan, rest): def fstart(cli, nick, chan, rest):
var.CAN_START_TIME = datetime.now() var.CAN_START_TIME = datetime.now()
cli.msg(botconfig.CHANNEL, "\u0002{0}\u0002 has forced the game to start.".format(nick)) cli.msg(botconfig.CHANNEL, "\u0002{0}\u0002 has forced the game to start.".format(nick))
start(cli, nick, nick, rest) start(cli, chan, chan, rest)
@ -2200,10 +2200,6 @@ def start(cli, nick, chann_, rest):
cli.notice(nick, "You're currently not playing.") cli.notice(nick, "You're currently not playing.")
return return
# fstart condition
if nick == chan:
chan = botconfig.CHANNEL
now = datetime.now() now = datetime.now()
var.GAME_START_TIME = now # Only used for the idler checker var.GAME_START_TIME = now # Only used for the idler checker
dur = int((var.CAN_START_TIME - now).total_seconds()) dur = int((var.CAN_START_TIME - now).total_seconds())

Loading…
Cancel
Save