diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-30 14:34:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-30 14:34:49 +0000 |
commit | fce2d243c023660a9afbf01143cde6eda2ec7a88 (patch) | |
tree | fcf7276b29c2b546780e4626d4cdccdd1b08ea8a /src/cmd_quit.cpp | |
parent | 81c26039d5b27f039cbaae53f56fe6eca4123467 (diff) |
Add unregistered user counter, this may also fix the (minor) m_conn_lusers shows current connection as unregged
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6170 e03df62e-2008-0410-955e-edbf42e46eb7
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; } |