mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Forgot to change an IndexError to a ValueError.
This commit is contained in:
parent
60c00549e1
commit
31b1abaa59
@ -82,7 +82,7 @@ def addressed(nick, msg):
|
|||||||
return rest
|
return rest
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
except IndexError:
|
except ValueError: # split didn't work.
|
||||||
return ''
|
return ''
|
||||||
elif msg.args[1] and msg.args[1][0] in conf.prefixChars:
|
elif msg.args[1] and msg.args[1][0] in conf.prefixChars:
|
||||||
return msg.args[1][1:].strip()
|
return msg.args[1][1:].strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user