1
0
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:
Adam
2010-10-13 13:25:34 -04:00
parent dc0c07b408
commit c4075c032e
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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
{
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)