mirror of
https://github.com/anope/anope.git
synced 2026-06-29 16:56:37 +02:00
Fix various inconsistencies/crashes related to having multiple opers configured for the same user through combinations of os_oper/config/m_sql_oper
This commit is contained in:
@@ -502,6 +502,13 @@ Conf::Conf() : Block("")
|
||||
if (!na)
|
||||
continue;
|
||||
|
||||
if (!na->nc || na->nc->o)
|
||||
{
|
||||
// If the account is already an oper it might mean two oper blocks for the same nick, or
|
||||
// something else has configured them as an oper (like a module)
|
||||
continue;
|
||||
}
|
||||
|
||||
na->nc->o = o;
|
||||
Log() << "Tied oper " << na->nc->display << " to type " << o->ot->GetName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user