aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
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 5de9f6c9..1bcc8f57 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -189,7 +189,7 @@ def handle_421(data):
def handle_QUIT(data):
server = data.server
nickname, username, hostname = Utils.seperate_hostmask(data.prefix)
- reason = data.args[0]
+ reason = data.args[0] if len(data.args) else None
if not server.is_own_nickname(nickname):
user = server.get_user(nickname)
server.remove_user(user)