summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-03-02 21:36:44 +0100
committerattilamolnar <attilamolnar@hush.com>2013-03-11 20:48:58 +0100
commit99a470a5909b05757dbaef96cce1fafdba7d5240 (patch)
tree2be3f3da052c1bd91a334437ff49f43a9d1044f9 /src/usermanager.cpp
parent3e6a05f4fadaa8b8b4ab6c8a970e84e63a9f27c2 (diff)
Stop user initialization when the user is marked as quitting after OnSetUserIP
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp3
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)