From 2f41a2f4370ee89a753b4fbdb57a7a8da22fee00 Mon Sep 17 00:00:00 2001 From: Yizhe Shen Date: Sat, 23 Aug 2014 09:43:59 -0400 Subject: [PATCH] Minor fix for 'showreport' command. - Bug introduced in b5501e5. --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 85083f3..fe273ec 100644 --- a/plugin.py +++ b/plugin.py @@ -1310,9 +1310,9 @@ class TriviaTime(callbacks.Plugin): irc.reply('Report #%d \'%s\' by %s on %s Q#%d '%(report['id'], report['report_text'], report['username'], report['channel'], report['question_num'])) question = threadStorage.getQuestionById(report['question_num']) if question: - irc.error('Question could not be found.') - else: irc.reply('Question #%d: %s' % (question['id'], question['question'])) + else: + irc.error('Question could not be found.') else: if self.registryValue('general.globalstats'): irc.reply('Unable to find report #{0}.'.format(num))