diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-03-02 21:36:44 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-03-11 20:48:58 +0100 |
commit | 99a470a5909b05757dbaef96cce1fafdba7d5240 (patch) | |
tree | 2be3f3da052c1bd91a334437ff49f43a9d1044f9 /src/usermanager.cpp | |
parent | 3e6a05f4fadaa8b8b4ab6c8a970e84e63a9f27c2 (diff) |
Stop user initialization when the user is marked as quitting after OnSetUserIP
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index bef7ccbcc..124c4d140 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -147,6 +147,9 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs New->WriteServ("NOTICE Auth :*** Raw I/O logging is enabled on this server. All messages, passwords, and commands are being recorded."); FOREACH_MOD(I_OnSetUserIP,OnSetUserIP(New)); + if (New->quitting) + return; + FOREACH_MOD(I_OnUserInit,OnUserInit(New)); if (ServerInstance->Config->NoUserDns) |