]> jfr.im git - erebus.git/commitdiff
trivia bugfix
authorzonidjan <redacted>
Sat, 26 Mar 2016 18:26:09 +0000 (13:26 -0500)
committerzonidjan <redacted>
Sat, 26 Mar 2016 18:26:09 +0000 (13:26 -0500)
modules/trivia.py

index b23248c82020b51240d48aa8cb5629134024ae4c..f7e6a698716b7d269add3234bec586cd72440102 100644 (file)
@@ -397,7 +397,12 @@ def cmd_start(bot, user, chan, realtarget, *args):
        if chan is not None and realtarget == chan.name: replyto = chan
        else: replyto = user
 
+       if chan is not None and chan.name != state.db['chan']:
+               bot.msg(replyto, "That command isn't valid here.")
+               return
+
        if state.curq is None and state.pointvote is None and state.nextquestiontimer is None:
+               bot.msg(state.db['chan'], "%s has started the game!" % (user))
                state.nextquestion(skipwait=True)
        elif state.pointvote is not None:
                bot.msg(replyto, "There's a vote in progress!")