Forgot to change an IndexError to a ValueError.

This commit is contained in:
Jeremy Fincher 2003-09-25 16:09:18 +00:00
parent 60c00549e1
commit 31b1abaa59

View File

@ -82,7 +82,7 @@ def addressed(nick, msg):
return rest
else:
return ''
except IndexError:
except ValueError: # split didn't work.
return ''
elif msg.args[1] and msg.args[1][0] in conf.prefixChars:
return msg.args[1][1:].strip()