mirror of https://github.com/Mikaela/Limnoria.git
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:
parent
4aa876255c
commit
d469108054
|
@ -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