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_ban.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_ban.cpp')
-rw-r--r-- | modules/core/cs_ban.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/cs_ban.cpp b/modules/core/cs_ban.cpp index 8f85a0a48..b269e7492 100644 --- a/modules/core/cs_ban.cpp +++ b/modules/core/cs_ban.cpp @@ -37,21 +37,21 @@ class CommandCSBan : public Command uint16 u_level = u_access ? u_access->level : 0, u2_level = u2_access ? u2_access->level : 0; if (!c) - source.Reply(LanguageString::CHAN_X_NOT_IN_USE, chan.c_str()); + source.Reply(_(CHAN_X_NOT_IN_USE), chan.c_str()); else if (!u2) - source.Reply(LanguageString::NICK_X_NOT_IN_USE, target.c_str()); + source.Reply(_(NICK_X_NOT_IN_USE), target.c_str()); else if (!is_same ? !check_access(u, ci, CA_BAN) : !check_access(u, ci, CA_BANME)) - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); else if (!is_same && ci->HasFlag(CI_PEACE) && u2_level >= u_level) - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); /* * Dont ban/kick the user on channels where he is excepted * to prevent services <-> server wars. */ else if (matches_list(ci->c, u2, CMODE_EXCEPT)) - source.Reply(LanguageString::CHAN_EXCEPTED, u2->nick.c_str(), ci->name.c_str()); + source.Reply(_(CHAN_EXCEPTED), u2->nick.c_str(), ci->name.c_str()); else if (u2->IsProtected()) - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); else { Anope::string mask; |