Permalink
Browse files

Stop user initialization when the user is marked as quitting after On…

…SetUserIP
  • Loading branch information...
1 parent 3e6a05f commit 99a470a5909b05757dbaef96cce1fafdba7d5240 @attilamolnar attilamolnar committed Mar 2, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/usermanager.cpp
View
@@ -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)

0 comments on commit 99a470a

Please sign in to comment.