summaryrefslogtreecommitdiff
path: root/src/cmd_quit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_quit.cpp')
-rw-r--r--src/cmd_quit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp
index bf64aea3d..41cc48c8e 100644
--- a/src/cmd_quit.cpp
+++ b/src/cmd_quit.cpp
@@ -99,8 +99,9 @@ CmdResult cmd_quit::Handle (const char** parameters, int pcnt, userrec *user)
if (user->registered == REG_ALL) {
user->PurgeEmptyChannels();
}
- DELETE(user);
- return CMD_SUCCESS;
+ FOREACH_MOD(I_OnPostCommand,OnPostCommand("QUIT", parameters, pcnt, user, CMD_SUCCESS));
+ DELETE(user);
+ return CMD_USER_DELETED;
}