Topic: fix bug in invalid number error output.

Previously, when giving an invalid positive number, error would reference number-1 as being invalid.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
Daniel Folkinshteyn 2010-07-23 16:50:25 -04:00 committed by James McCoy
parent 84b878b10e
commit d691a91636

View File

@ -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)