diff options
author | Adam <Adam@anope.org> | 2011-02-26 17:54:03 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-26 17:54:03 -0500 |
commit | f234a2bfab8a4d900cfc0df91afed530d80738d4 (patch) | |
tree | 0224eb342a7d60cee86995bd87910f858d7a2e53 /modules/core/cs_set.cpp | |
parent | 28d17a40cef64783addf177fa30fb267db2cbde7 (diff) |
Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt
Diffstat (limited to 'modules/core/cs_set.cpp')
-rw-r--r-- | modules/core/cs_set.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/cs_set.cpp b/modules/core/cs_set.cpp index e089d4a2a..bfb708cac 100644 --- a/modules/core/cs_set.cpp +++ b/modules/core/cs_set.cpp @@ -35,19 +35,19 @@ class CommandCSSet : public Command if (readonly) { - source.Reply(LanguageString::CHAN_SET_DISABLED); + source.Reply(_(CHAN_SET_DISABLED)); return MOD_CONT; } if (!check_access(u, cs_findchan(params[0]), CA_SET)) { - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); return MOD_CONT; } // XXX Remove after 1.9.4 release if (params[1].equals_ci("MLOCK")) { - source.Reply(LanguageString::CHAN_SET_MLOCK_DEPRECATED, Config->s_ChanServ.c_str()); + source.Reply(_(CHAN_SET_MLOCK_DEPRECATED), Config->s_ChanServ.c_str()); return MOD_CONT; } @@ -63,8 +63,8 @@ class CommandCSSet : public Command } else { - source.Reply(LanguageString::NICK_SET_UNKNOWN_OPTION, params[1].c_str()); - source.Reply(LanguageString::MORE_INFO, Config->s_ChanServ.c_str(), "SET"); + source.Reply(_(NICK_SET_UNKNOWN_OPTION), params[1].c_str()); + source.Reply(_(MORE_INFO), Config->s_ChanServ.c_str(), "SET"); } return MOD_CONT; @@ -99,7 +99,7 @@ class CommandCSSet : public Command void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) { - SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX); + SyntaxError(source, "SET", _(CHAN_SET_SYNTAX)); } bool AddSubcommand(Module *creator, Command *c) |