diff options
Diffstat (limited to 'src/cmd_quit.cpp')
-rw-r--r-- | src/cmd_quit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index db71bbdb1..32bfff0fa 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -106,6 +106,10 @@ CmdResult cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) FOREACH_MOD(I_OnPostCommand,OnPostCommand("QUIT", parameters, pcnt, user, CMD_SUCCESS, original_command)); } + if (user->registered != REG_ALL) + if (ServerInstance->unregistered_count) + ServerInstance->unregistered_count--; + DELETE(user); return CMD_USER_DELETED; } |