1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 06:43:14 +02:00

Default require_oper to true. Fixes os_oper unserializer because it doesn't set it.

This commit is contained in:
Adam
2017-07-02 18:03:36 -04:00
parent feed624cdc
commit 56e6efbe8f
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -109,7 +109,6 @@ class CommandOSOper : public Command
}
na->nc->o = new MyOper(na->nc->display, ot);
na->nc->o->require_oper = true;
if (Anope::ReadOnly)
source.Reply(READ_ONLY_MODE);
+1 -1
View File
@@ -13,7 +13,7 @@
std::vector<Oper *> Oper::opers;
Oper::Oper(const Anope::string &n, OperType *o) : name(n), ot(o), require_oper(false)
Oper::Oper(const Anope::string &n, OperType *o) : name(n), ot(o), require_oper(true)
{
opers.push_back(this);
}