1
0
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:
Adam
2016-01-19 16:25:02 -05:00
parent 4771af1cb8
commit 164b349ef9
3 changed files with 43 additions and 10 deletions
+7
View File
@@ -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();
}