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

Move enforcer checks on nick and logout to nickserv.cpp

This commit is contained in:
Adam
2013-01-03 13:20:10 -05:00
parent 098157dca8
commit 23e303aaa2
5 changed files with 23 additions and 16 deletions
+2 -2
View File
@@ -713,7 +713,7 @@ class OSSession : public Module
{
this->SetAuthor("Anope");
Implementation i[] = { I_OnUserConnect, I_OnUserLogoff };
Implementation i[] = { I_OnUserConnect, I_OnPreUserLogoff };
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::SetPriority(this, PRIORITY_FIRST);
}
@@ -724,7 +724,7 @@ class OSSession : public Module
this->AddSession(user, exempt);
}
void OnUserLogoff(User *u) anope_override
void OnPreUserLogoff(User *u) anope_override
{
if (Config->LimitSessions && (!u->server || !u->server->IsULined()))
this->DelSession(u);