Don't break on an empty quit message
This commit is contained in:
parent
249a3b40b3
commit
34d0bd4dcb
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ def handle_421(data):
|
||||||
def handle_QUIT(data):
|
def handle_QUIT(data):
|
||||||
server = data.server
|
server = data.server
|
||||||
nickname, username, hostname = Utils.seperate_hostmask(data.prefix)
|
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):
|
if not server.is_own_nickname(nickname):
|
||||||
user = server.get_user(nickname)
|
user = server.get_user(nickname)
|
||||||
server.remove_user(user)
|
server.remove_user(user)
|
||||||
|
|
Loading…
Reference in a new issue