summaryrefslogtreecommitdiff
path: root/modules/core/ns_help.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-26 02:33:01 -0400
committerAdam <Adam@anope.org>2010-09-26 02:33:01 -0400
commitd646d455e2655be59f6d5bcc56710ac70548ca37 (patch)
treed236b9d4991d62538a0318f213416396734e72e0 /modules/core/ns_help.cpp
parent05e6815d912f0418f6da25a2106dd718796f02fa (diff)
Changed the language system to use gettext
Diffstat (limited to 'modules/core/ns_help.cpp')
-rw-r--r--modules/core/ns_help.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/modules/core/ns_help.cpp b/modules/core/ns_help.cpp
index 7dad067b9..8bd062f6a 100644
--- a/modules/core/ns_help.cpp
+++ b/modules/core/ns_help.cpp
@@ -23,32 +23,21 @@ class CommandNSHelp : public Command
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
{
- Anope::string cmd = params[0];
-
- if (cmd.equals_ci("SET LANGUAGE"))
- {
- int i;
- notice_help(Config->s_NickServ, u, NICK_HELP_SET_LANGUAGE);
- for (i = 0; i < NUM_LANGS && langlist[i] >= 0; ++i)
- u->SendMessage(Config->s_NickServ, " %2d) %s", i + 1, langnames[langlist[i]]);
- }
- else
- mod_help_cmd(NickServ, u, cmd);
-
+ mod_help_cmd(NickServ, u, params[0]);
return MOD_CONT;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
{
- notice_help(Config->s_NickServ, u, NICK_HELP);
+ u->SendMessage(NickServ, NICK_HELP);
for (CommandMap::const_iterator it = NickServ->Commands.begin(), it_end = NickServ->Commands.end(); it != it_end; ++it)
if (!Config->HidePrivilegedCommands || it->second->permission.empty() || (u->Account() && u->Account()->HasCommand(it->second->permission)))
it->second->OnServHelp(u);
if (u->Account() && u->Account()->IsServicesOper())
- notice_help(Config->s_NickServ, u, NICK_SERVADMIN_HELP);
+ u->SendMessage(NickServ, NICK_SERVADMIN_HELP);
if (Config->NSExpire >= 86400)
- notice_help(Config->s_NickServ, u, NICK_HELP_EXPIRES, Config->NSExpire / 86400);
- notice_help(Config->s_NickServ, u, NICK_HELP_FOOTER);
+ u->SendMessage(NickServ, NICK_HELP_EXPIRES, Config->NSExpire / 86400);
+ u->SendMessage(NickServ, NICK_HELP_FOOTER);
}
};