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/bs_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/bs_set.cpp')
-rw-r--r-- | modules/core/bs_set.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/bs_set.cpp b/modules/core/bs_set.cpp index 3e9bf13a0..8439ef9e7 100644 --- a/modules/core/bs_set.cpp +++ b/modules/core/bs_set.cpp @@ -39,7 +39,7 @@ class CommandBSSet : public Command if (!(bi = findbot(chan))) { - source.Reply(LanguageString::BOT_DOES_NOT_EXIST, chan.c_str()); + source.Reply(_(BOT_DOES_NOT_EXIST), chan.c_str()); return MOD_CONT; } @@ -58,9 +58,9 @@ class CommandBSSet : public Command return MOD_CONT; } else if (!(ci = cs_findchan(chan))) - source.Reply(LanguageString::CHAN_X_NOT_REGISTERED, chan.c_str()); + source.Reply(_(CHAN_X_NOT_REGISTERED), chan.c_str()); else if (!u->Account()->HasPriv("botserv/administration") && !check_access(u, ci, CA_SET)) - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); else { bool override = !check_access(u, ci, CA_SET); @@ -192,7 +192,7 @@ class CommandBSSet : public Command SyntaxError(source, "SET MSG", _("SET \037channel\037 MSG {\037OFF|PRIVMSG|NOTICE|\037}")); } else - source.Reply(LanguageString::UNKNOWN_OPTION, option.c_str(), this->name.c_str()); + source.Reply(_(UNKNOWN_OPTION), option.c_str(), this->name.c_str()); } return MOD_CONT; |