From 123eac3f25ce4dd3142b4ac66eb321f7df1e23e4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 21 Oct 2009 23:45:19 +0000 Subject: Change module API to use LocalUser* where correct git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/usermanager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index db2b3a75c..6889ddba3 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -198,14 +198,13 @@ void UserManager::QuitUser(User *user, const std::string &quitreason, const char user->WriteCommonQuit(reason, oper_reason); } - FOREACH_MOD(I_OnUserDisconnect,OnUserDisconnect(user)); - if (user->registered != REG_ALL) if (ServerInstance->Users->unregistered_count) ServerInstance->Users->unregistered_count--; if (IS_LOCAL(user)) { + FOREACH_MOD(I_OnUserDisconnect,OnUserDisconnect(IS_LOCAL(user))); user->DoWrite(); if (user->GetIOHook()) { -- cgit v1.2.3