aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/line_handler/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core_modules/line_handler/user.py')
-rw-r--r--src/core_modules/line_handler/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_modules/line_handler/user.py b/src/core_modules/line_handler/user.py
index 765d1da8..a5d407fb 100644
--- a/src/core_modules/line_handler/user.py
+++ b/src/core_modules/line_handler/user.py
@@ -27,9 +27,9 @@ def quit(events, event):
if (not event["server"].is_own_nickname(nickname) and
not event["line"].source.hostmask == "*"):
user = event["server"].get_user(nickname)
+ event["server"].quit_user(user)
events.on("received.quit").call(reason=reason, user=user,
server=event["server"])
- event["server"].remove_user(user)
else:
event["server"].disconnect()
else: