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