diff options
| author | 2017-09-18 10:35:30 +0100 | |
|---|---|---|
| committer | 2017-09-18 10:35:30 +0100 | |
| commit | 34d0bd4dcb72bc496ed9750c83a9f938954bb1df (patch) | |
| tree | 1615b1621ef644638890458526ca1429a299eaef /IRCLineHandler.py | |
| parent | Make the telegram module vaguely optional (diff) | |
| signature | ||
Don't break on an empty quit message
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 2 |
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) |
