diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-10 10:04:34 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-10 10:04:34 +0000 |
commit | 4d89b91ed311fa3952ee968bdd133a480bd6b745 (patch) | |
tree | a928015d9465911d17671564dc91dabef866770a /src | |
parent | 24dbf4e00c4d284ef7e77cbe6f6d5fd2979c5b01 (diff) |
Change ns_set to use subcommand for help display.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1970 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ns_set.c | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/src/core/ns_set.c b/src/core/ns_set.c index 7b7772bc6..2023ed416 100644 --- a/src/core/ns_set.c +++ b/src/core/ns_set.c @@ -504,20 +504,32 @@ class CommandNSSet : public Command bool OnHelp(User *u, const std::string &subcommand) { - // This needs to change XXX - notice_lang(s_NickServ, u, NICK_HELP_SET); - notice_lang(s_NickServ, u, NICK_HELP_SET_DISPLAY); - notice_lang(s_NickServ, u, NICK_HELP_SET_PASSWORD); - notice_lang(s_NickServ, u, NICK_HELP_SET_URL); - notice_lang(s_NickServ, u, NICK_HELP_SET_EMAIL); - notice_lang(s_NickServ, u, NICK_HELP_SET_ICQ); - notice_lang(s_NickServ, u, NICK_HELP_SET_GREET); - notice_lang(s_NickServ, u, NICK_HELP_SET_KILL); - notice_lang(s_NickServ, u, NICK_HELP_SET_SECURE); - notice_lang(s_NickServ, u, NICK_HELP_SET_PRIVATE); - notice_lang(s_NickServ, u, NICK_HELP_SET_MSG); - notice_lang(s_NickServ, u, NICK_HELP_SET_HIDE); - notice_lang(s_NickServ, u, NICK_HELP_SET_AUTOOP); + if (subcommand == "DISPLAY") + notice_lang(s_NickServ, u, NICK_HELP_SET_DISPLAY); + else if (subcommand == "PASSWORD") + notice_lang(s_NickServ, u, NICK_HELP_SET_PASSWORD); + else if (subcommand == "URL") + notice_lang(s_NickServ, u, NICK_HELP_SET_URL); + else if (subcommand == "EMAIL") + notice_lang(s_NickServ, u, NICK_HELP_SET_EMAIL); + else if (subcommand == "ICQ") + notice_lang(s_NickServ, u, NICK_HELP_SET_ICQ); + else if (subcommand == "GREET") + notice_lang(s_NickServ, u, NICK_HELP_SET_GREET); + else if (subcommand == "KILL") + notice_lang(s_NickServ, u, NICK_HELP_SET_KILL); + else if (subcommand == "SECURE") + notice_lang(s_NickServ, u, NICK_HELP_SET_SECURE); + else if (subcommand == "PRIVATE") + notice_lang(s_NickServ, u, NICK_HELP_SET_PRIVATE); + else if (subcommand == "MSG") + notice_lang(s_NickServ, u, NICK_HELP_SET_MSG); + else if (subcommand == "HIDE") + notice_lang(s_NickServ, u, NICK_HELP_SET_HIDE); + else if (subcommand == "AUTOOP") + notice_lang(s_NickServ, u, NICK_HELP_SET_AUTOOP); + else + notice_lang(s_NickServ, u, NICK_HELP_SET); } void OnSyntaxError(User *u) |