Topic: fix bug in invalid number error output.

Previously, when giving an invalid positive number, error would reference number-1 as being invalid.
This commit is contained in:
Daniel Folkinshteyn 2010-07-23 16:50:25 -04:00
parent 4aa876255c
commit d469108054
1 changed files with 1 additions and 1 deletions

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)