From 46d8bd879e351787a884ce8b120de93d49a47dd7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 13 Jan 2018 22:21:53 +0000 Subject: Fix crash on PRIVMSG with nothing but whitespace --- IRCLineHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IRCLineHandler.py') diff --git a/IRCLineHandler.py b/IRCLineHandler.py index ca54d7f5..1b6014d2 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -291,7 +291,7 @@ def handle_PRIVMSG(data): server = data.server nickname, username, hostname = Utils.seperate_hostmask(data.prefix) user = server.get_user(nickname) - message = data.args[1] + message = "" if len(data.args) < 2 else data.args[1] message_split = message.split(" ") target = data.args[0] action = message.startswith("\01ACTION ") and message.endswith("\01") -- cgit v1.3.1-10-gc9f91