mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-09 12:29:22 +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.
This commit is contained in:
parent
4aa876255c
commit
d469108054
@ -89,7 +89,7 @@ def getTopicNumber(irc, msg, args, state):
|
|||||||
try:
|
try:
|
||||||
topics[n]
|
topics[n]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
error(str(n))
|
error(args[0])
|
||||||
del args[0]
|
del args[0]
|
||||||
while n < 0:
|
while n < 0:
|
||||||
n += len(topics)
|
n += len(topics)
|
||||||
|
Loading…
Reference in New Issue
Block a user