summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_logout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/ns_logout.c b/src/core/ns_logout.c
index ef91b75a9..a6afae615 100644
--- a/src/core/ns_logout.c
+++ b/src/core/ns_logout.c
@@ -113,13 +113,16 @@ int do_logout(User * u)
/* Stop nick tracking if enabled */
if (NSNickTracking)
+ /* Shouldn't this be u2? -GD */
nsStopNickTracking(u);
/* Clear any timers again */
if (u->na->nc->flags & NI_KILLPROTECT) {
del_ns_timeout(u->na, TO_COLLIDE);
}
-
+
+ /* Send out an event */
+ send_event(EVENT_NICK_LOGOUT, 1, u2->nick);
}
return MOD_CONT;
}