mirror of
https://github.com/anope/anope.git
synced 2026-06-26 20:56:39 +02:00
Merge branch '2.0' into 2.1.
This commit is contained in:
@@ -145,6 +145,15 @@ public:
|
||||
|
||||
Log(LOG_DEBUG) << "sql_authentication: Checking authentication for " << req->GetAccount();
|
||||
}
|
||||
|
||||
void OnPreNickExpire(NickAlias *na, bool &expire) override
|
||||
{
|
||||
// We can't let nicks expire if they still have a group or
|
||||
// there will be a zombie account left over that can't be
|
||||
// authenticated to.
|
||||
if (na->nick == na->nc->display && na->nc->aliases->size() > 1)
|
||||
expire = false;
|
||||
}
|
||||
};
|
||||
|
||||
MODULE_INIT(ModuleSQLAuthentication)
|
||||
|
||||
Reference in New Issue
Block a user