mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
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:
parent
84b878b10e
commit
d691a91636
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user