Remove users from channels/server AFTER we call received.quit

This commit is contained in:
jesopo 2019-06-05 13:18:29 +01:00
parent c6696c8b00
commit 5e8f9ccbcf

View file

@ -27,9 +27,9 @@ def quit(events, event):
if (not event["server"].is_own_nickname(nickname) and
not event["source"].hostmask == "*"):
user = event["server"].get_user(nickname)
event["server"].remove_user(user)
events.on("received.quit").call(reason=reason, user=user,
server=event["server"])
event["server"].remove_user(user)
else:
event["server"].disconnect()
else: