From 99a470a5909b05757dbaef96cce1fafdba7d5240 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 2 Mar 2013 21:36:44 +0100 Subject: Stop user initialization when the user is marked as quitting after OnSetUserIP --- src/usermanager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) -- cgit v1.2.3