From: zonidjan Date: Sat, 26 Mar 2016 18:26:09 +0000 (-0500) Subject: trivia bugfix X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/77a265cdce6e50ad965401f58a1a521f96b5377b trivia bugfix --- diff --git a/modules/trivia.py b/modules/trivia.py index b23248c..f7e6a69 100644 --- a/modules/trivia.py +++ b/modules/trivia.py @@ -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!")