mirror of
https://github.com/anope/anope.git
synced 2026-06-28 06:36:38 +02:00
Changed cs/ns_set_misc operonly config directive to better reflect what it really does
This commit is contained in:
+3
-3
@@ -1664,8 +1664,8 @@ cs_set_misc
|
||||
name = "OINFO"
|
||||
/* A short description of the command */
|
||||
desc = "Associate oper only information to this channel"
|
||||
/* Set to yes if only opers can set it and see it */
|
||||
operonly = yes
|
||||
/* Set to yes if only opers and privileged users can set it and see it */
|
||||
privileged = yes
|
||||
}
|
||||
cs_set_misc
|
||||
{
|
||||
@@ -1683,7 +1683,7 @@ ns_set_misc
|
||||
{
|
||||
name = "OINFO"
|
||||
desc = "Associate oper only information to this nick"
|
||||
operonly = yes
|
||||
privileged = yes
|
||||
}
|
||||
ns_set_misc
|
||||
{
|
||||
|
||||
@@ -146,7 +146,7 @@ class CSSetMisc : public Module
|
||||
if (cname.empty())
|
||||
continue;
|
||||
Anope::string desc = config.ReadValue("cs_set_misc", "desc", "", i);
|
||||
bool showhidden = config.ReadFlag("cs_set_misc", "operonly", "no", i);
|
||||
bool showhidden = config.ReadFlag("cs_set_misc", "privileged", "no", i);
|
||||
|
||||
CommandInfo *info = new CommandInfo(cname, desc, showhidden);
|
||||
if (!this->Commands.insert(std::make_pair(cname, info)).second)
|
||||
|
||||
@@ -163,7 +163,7 @@ class NSSetMisc : public Module
|
||||
if (cname.empty())
|
||||
continue;
|
||||
Anope::string desc = config.ReadValue("ns_set_misc", "desc", "", i);
|
||||
bool showhidden = config.ReadFlag("ns_set_misc", "operonly", "no", i);
|
||||
bool showhidden = config.ReadFlag("ns_set_misc", "privileged", "no", i);
|
||||
|
||||
CommandInfo *info = new CommandInfo(cname, desc, showhidden);
|
||||
if (!this->Commands.insert(std::make_pair(cname, info)).second)
|
||||
|
||||
Reference in New Issue
Block a user