From d469108054bf9bc4a0435c8161dd51490a40b3fd Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Fri, 23 Jul 2010 16:50:25 -0400 Subject: [PATCH] Topic: fix bug in invalid number error output. Previously, when giving an invalid positive number, error would reference number-1 as being invalid. --- plugins/Topic/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Topic/plugin.py b/plugins/Topic/plugin.py index ba80df9f0..6b936bd18 100644 --- a/plugins/Topic/plugin.py +++ b/plugins/Topic/plugin.py @@ -89,7 +89,7 @@ def getTopicNumber(irc, msg, args, state): try: topics[n] except IndexError: - error(str(n)) + error(args[0]) del args[0] while n < 0: n += len(topics)