1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 18:43:13 +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
+2
View File
@@ -135,6 +135,8 @@ class CommandOSOper : public Command
source.Reply(_("Nick \002%s\002 is not a Services Operator."), oper.c_str());
else if (!HasPrivs(source, na->nc->o->ot))
source.Reply(ACCESS_DENIED);
else if (std::find(Config->Opers.begin(), Config->Opers.end(), na->nc->o) != Config->Opers.end())
source.Reply(_("Oper \002%s\002 is configured in the configuration file(s) and can not be removed by this command."), na->nc->display.c_str());
else
{
delete na->nc->o;