1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 18:06:39 +02:00

Don't delete users immediately when quit or killed, instead wait until message processing is done

This commit is contained in:
Adam
2013-01-03 11:41:32 -05:00
parent 827469600e
commit 098157dca8
25 changed files with 133 additions and 114 deletions
+2 -2
View File
@@ -718,9 +718,9 @@ class OSSession : public Module
ModuleManager::SetPriority(this, PRIORITY_FIRST);
}
void OnUserConnect(Reference<User> &user, bool &exempt) anope_override
void OnUserConnect(User *user, bool &exempt) anope_override
{
if (user && Config->LimitSessions)
if (!user->Quitting() && Config->LimitSessions)
this->AddSession(user, exempt);
}