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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user