1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 11:16:37 +02:00

Fixed ns_set_misc not showing help for its SASET commands.

Added descriptions and SASETs for the remaining commented ns_set_misc examples, without a description they won't show up in HELP if someone actually enabled those.
This commit is contained in:
Robby-
2013-02-05 16:31:14 +01:00
parent 62e3c8c4f8
commit 65fbdcfa87
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -551,9 +551,12 @@ command { service = "NickServ"; name = "SASET NOEXPIRE"; command = "nickserv/sas
module { name = "ns_set_misc" }
command { service = "NickServ"; name = "SET URL"; command = "nickserv/set/misc"; misc_description = _("Associate a URL with your account"); }
command { service = "NickServ"; name = "SASET URL"; command = "nickserv/saset/misc"; misc_description = _("Associate a URL with this account"); permission = "nickserv/saset/url"; group = "nickserv/admin"; }
#command { service = "NickServ"; name = "SET ICQ"; command = "nickserv/set/misc"; }
#command { service = "NickServ"; name = "SET TWITTER"; command = "nickserv/set/misc"; }
#command { service = "NickServ"; name = "SET FACEBOOK"; command = "nickserv/set/misc"; }
#command { service = "NickServ"; name = "SET ICQ"; command = "nickserv/set/misc"; misc_description = _("Associate an ICQ account with your account"); }
#command { service = "NickServ"; name = "SASET ICQ"; command = "nickserv/saset/misc"; misc_description = _("Associate an ICQ account with this account"); permission = "nickserv/saset/icq"; group = "nickserv/admin"; }
#command { service = "NickServ"; name = "SET TWITTER"; command = "nickserv/set/misc"; misc_description = _("Associate a Twitter account with your account"); }
#command { service = "NickServ"; name = "SASET TWITTER"; command = "nickserv/saset/misc"; misc_description = _("Associate a Twitter account with this account"); permission = "nickserv/saset/twitter"; group = "nickserv/admin"; }
#command { service = "NickServ"; name = "SET FACEBOOK"; command = "nickserv/set/misc"; misc_description = _("Associate a Facebook URL with your account"); }
#command { service = "NickServ"; name = "SASET FACEBOOK"; command = "nickserv/saset/misc"; misc_description = _("Associate a Facebook URL with this account"); permission = "nickserv/saset/facebook"; group = "nickserv/admin"; }
/*
* ns_status
+1 -1
View File
@@ -173,7 +173,7 @@ class NSSetMisc : public Module
for (int i = 0; i < config.Enumerate("command"); ++i)
{
if (config.ReadValue("command", "command", "", i) != "nickserv/set/misc")
if (config.ReadValue("command", "command", "", i) != "nickserv/set/misc" && config.ReadValue("command", "command", "", i) != "nickserv/saset/misc")
continue;
Anope::string cname = config.ReadValue("command", "name", "", i);