diff options
| author | Adam <Adam@anope.org> | 2010-09-26 02:33:01 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-26 02:33:01 -0400 |
| commit | d646d455e2655be59f6d5bcc56710ac70548ca37 (patch) | |
| tree | d236b9d4991d62538a0318f213416396734e72e0 /modules/extra/ns_set_misc.cpp | |
| parent | 05e6815d912f0418f6da25a2106dd718796f02fa (diff) | |
Changed the language system to use gettext
Diffstat (limited to 'modules/extra/ns_set_misc.cpp')
| -rw-r--r-- | modules/extra/ns_set_misc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/ns_set_misc.cpp b/modules/extra/ns_set_misc.cpp index 2d267f2c4..87c7c05f2 100644 --- a/modules/extra/ns_set_misc.cpp +++ b/modules/extra/ns_set_misc.cpp @@ -29,10 +29,10 @@ class CommandNSSetMisc : public Command if (params.size() > 1) { nc->Extend("nickserv:" + this->name, new ExtensibleItemRegular<Anope::string>(params[1])); - notice_lang(Config->s_NickServ, u, CHAN_SETTING_CHANGED, this->name.c_str(), nc->display.c_str(), params[1].c_str()); + u->SendMessage(NickServ, CHAN_SETTING_CHANGED, this->name.c_str(), nc->display.c_str(), params[1].c_str()); } else - notice_lang(Config->s_NickServ, u, CHAN_SETTING_UNSET, this->name.c_str(), nc->display.c_str()); + u->SendMessage(NickServ, CHAN_SETTING_UNSET, this->name.c_str(), nc->display.c_str()); return MOD_CONT; } @@ -51,7 +51,7 @@ class CommandNSSetMisc : public Command void OnSyntaxError(User *u, const Anope::string &) { - syntax_error(Config->s_NickServ, u, "SET", NICK_SET_SYNTAX); + SyntaxError(NickServ, u, "SET", NICK_SET_SYNTAX); } void OnServHelp(User *u) @@ -76,7 +76,7 @@ class CommandNSSASetMisc : public CommandNSSetMisc void OnSyntaxError(User *u, const Anope::string &) { - syntax_error(Config->s_NickServ, u, "SASET", NICK_SASET_SYNTAX); + SyntaxError(NickServ, u, "SASET", NICK_SASET_SYNTAX); } }; |
