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/core/ns_set_autoop.cpp | |
parent | 05e6815d912f0418f6da25a2106dd718796f02fa (diff) |
Changed the language system to use gettext
Diffstat (limited to 'modules/core/ns_set_autoop.cpp')
-rw-r--r-- | modules/core/ns_set_autoop.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/core/ns_set_autoop.cpp b/modules/core/ns_set_autoop.cpp index fea68d742..4578362f5 100644 --- a/modules/core/ns_set_autoop.cpp +++ b/modules/core/ns_set_autoop.cpp @@ -31,12 +31,12 @@ class CommandNSSetAutoOp : public Command if (param.equals_ci("ON")) { nc->SetFlag(NI_AUTOOP); - notice_lang(Config->s_NickServ, u, NICK_SASET_AUTOOP_ON, nc->display.c_str()); + u->SendMessage(NickServ, NICK_SASET_AUTOOP_ON, nc->display.c_str()); } else if (param.equals_ci("OFF")) { nc->UnsetFlag(NI_AUTOOP); - notice_lang(Config->s_NickServ, u, NICK_SASET_AUTOOP_OFF, nc->display.c_str()); + u->SendMessage(NickServ, NICK_SASET_AUTOOP_OFF, nc->display.c_str()); } else this->OnSyntaxError(u, "AUTOOP"); @@ -46,18 +46,18 @@ class CommandNSSetAutoOp : public Command bool OnHelp(User *u, const Anope::string &) { - notice_help(Config->s_NickServ, u, NICK_HELP_SET_AUTOOP); + u->SendMessage(NickServ, NICK_HELP_SET_AUTOOP); return true; } void OnSyntaxError(User *u, const Anope::string &) { - syntax_error(Config->s_NickServ, u, "SET AUTOOP", NICK_SET_AUTOOP_SYNTAX); + SyntaxError(NickServ, u, "SET AUTOOP", NICK_SET_AUTOOP_SYNTAX); } void OnServHelp(User *u) { - notice_lang(Config->s_NickServ, u, NICK_HELP_CMD_SET_AUTOOP); + u->SendMessage(NickServ, NICK_HELP_CMD_SET_AUTOOP); } }; @@ -70,18 +70,18 @@ class CommandNSSASetAutoOp : public CommandNSSetAutoOp bool Help(User *u, const Anope::string &) { - notice_help(Config->s_NickServ, u, NICK_HELP_SASET_AUTOOP); + u->SendMessage(NickServ, NICK_HELP_SASET_AUTOOP); return true; } void OnSyntaxError(User *u, const Anope::string &) { - syntax_error(Config->s_NickServ, u, "SET AUTOOP", NICK_SASET_AUTOOP_SYNTAX); + SyntaxError(NickServ, u, "SET AUTOOP", NICK_SASET_AUTOOP_SYNTAX); } void OnServHelp(User *u) { - notice_lang(Config->s_NickServ, u, NICK_HELP_CMD_SASET_AUTOOP); + u->SendMessage(NickServ, NICK_HELP_CMD_SASET_AUTOOP); } }; |