diff --git a/src/callbacks.py b/src/callbacks.py index f9f6e63e0..2bed10700 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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()