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/hs_on.cpp | |
parent | 05e6815d912f0418f6da25a2106dd718796f02fa (diff) |
Changed the language system to use gettext
Diffstat (limited to 'modules/core/hs_on.cpp')
-rw-r--r-- | modules/core/hs_on.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/core/hs_on.cpp b/modules/core/hs_on.cpp index a57b8d8f2..c8e953e73 100644 --- a/modules/core/hs_on.cpp +++ b/modules/core/hs_on.cpp @@ -26,9 +26,9 @@ class CommandHSOn : public Command if (na && u->Account() == na->nc && na->hostinfo.HasVhost()) { if (!na->hostinfo.GetIdent().empty()) - notice_lang(Config->s_HostServ, u, HOST_IDENT_ACTIVATED, na->hostinfo.GetIdent().c_str(), na->hostinfo.GetHost().c_str()); + u->SendMessage(HostServ, HOST_IDENT_ACTIVATED, na->hostinfo.GetIdent().c_str(), na->hostinfo.GetHost().c_str()); else - notice_lang(Config->s_HostServ, u, HOST_ACTIVATED, na->hostinfo.GetHost().c_str()); + u->SendMessage(HostServ, HOST_ACTIVATED, na->hostinfo.GetHost().c_str()); Log(LOG_COMMAND, u, this) << "to enable their vhost of " << (!na->hostinfo.GetIdent().empty() ? na->hostinfo.GetIdent() + "@" : "") << na->hostinfo.GetHost(); ircdproto->SendVhost(u, na->hostinfo.GetIdent(), na->hostinfo.GetHost()); if (ircd->vhost) @@ -41,20 +41,20 @@ class CommandHSOn : public Command u->UpdateHost(); } else - notice_lang(Config->s_HostServ, u, HOST_NOT_ASSIGNED); + u->SendMessage(HostServ, HOST_NOT_ASSIGNED); return MOD_CONT; } bool OnHelp(User *u, const Anope::string &subcommand) { - notice_help(Config->s_HostServ, u, HOST_HELP_ON); + u->SendMessage(HostServ, HOST_HELP_ON); return true; } void OnServHelp(User *u) { - notice_lang(Config->s_HostServ, u, HOST_HELP_CMD_ON); + u->SendMessage(HostServ, HOST_HELP_CMD_ON); } }; |