aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
authorGravatar Evelyn2018-02-04 09:27:54 +0000
committerGravatar Evelyn2018-02-04 09:27:54 +0000
commit840fbcdb10b49861f8d51869dc7b832a16fdf35b (patch)
treed276f056da9e88a6a3d4fc517ac4475d6f993870 /IRCLineHandler.py
parentNR: Eagle endpoints are now under /json/ going forward (diff)
parentFix crash on PRIVMSG with nothing but whitespace (diff)
Merge branch 'master' of github.com:jesopo/bitbot
Diffstat (limited to 'IRCLineHandler.py')
-rw-r--r--IRCLineHandler.py2
1 files changed, 1 insertions, 1 deletions
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")