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