Merge pull request #129 from rootcoma/stop_fix

Fixing stopping from outside of channel
This commit is contained in:
tannn 2013-11-16 06:41:06 -08:00
commit 2a27a540df
1 changed files with 1 additions and 2 deletions

View File

@ -694,11 +694,10 @@ class TriviaTime(callbacks.Plugin):
irc.noReply()
start = wrap(start)
def stop(self, irc, msg, channel, args):
def stop(self, irc, msg, args, channel):
"""[<channel>]
Ends Trivia. Only use this if you know what you are doing.. Channel is only necessary when editing from outside of the channel
"""
channel = msg.args[0]
channelCanonical = ircutils.toLower(channel)
if channelCanonical in self.games:
if self.games[channelCanonical].questionOver == True: