summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usermanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index b8acf9da7..22c8239b9 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -85,8 +85,6 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs
*/
New->SetClass();
- FOREACH_MOD(I_OnUserInit,OnUserInit(New));
-
/*
* Check connect class settings and initialise settings into User.
* This will be done again after DNS resolution. -- w00t
@@ -141,6 +139,8 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs
*/
New->WriteServ("NOTICE Auth :*** Looking up your hostname...");
+ FOREACH_MOD(I_OnUserInit,OnUserInit(New));
+
if (ServerInstance->Config->NoUserDns)
{
New->WriteServ("NOTICE %s :*** Skipping host resolution (disabled by server administrator)", New->nick.c_str());