From b8ea810d8f309c92b17f6d7aa7da3b2672cb80a9 Mon Sep 17 00:00:00 2001 From: Yizhe Shen Date: Tue, 3 Jun 2014 22:44:58 -0400 Subject: [PATCH] Added editor information to "showedit" and a couple of fixes. - "showedit" command now displays who edited the question - Fix for kaosRemainingCommand (syntax error) - Fixed a typo in TriviaTime.addfile() --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index aca5643..b0abad0 100644 --- a/plugin.py +++ b/plugin.py @@ -156,7 +156,7 @@ class TriviaTime(callbacks.Plugin): elif msg.args[1] == otherHintCommand: if game.question.find("KAOS:") == 0: game.getRemainingKAOS() - else + else: game.getOtherHint() else: # check the answer @@ -382,7 +382,7 @@ class TriviaTime(callbacks.Plugin): def addfile(self, irc, msg, arg, filename): """[] Add a file of questions to the question database, - filename defaults to configured quesiton file. + filename defaults to configured question file. """ if filename is None: filename = self.registryValue('admin.quizfile') @@ -1195,7 +1195,7 @@ class TriviaTime(callbacks.Plugin): if len(edit) > 0: edit = edit[0] question = threadStorage.getQuestion(edit[1]) - irc.reply('Edit #%d, Question#%d'%(edit[0], edit[1])) + irc.reply('Edit #%d by %s, Question#%d'%(edit[0], edit[4], edit[1])) irc.reply('NEW:%s' %(edit[2])) if len(question) > 0: question = question[0]