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_bot.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_bot.cpp')
-rw-r--r-- | modules/core/bs_bot.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/core/bs_bot.cpp b/modules/core/bs_bot.cpp index 60dc5afaa..0c0c0730d 100644 --- a/modules/core/bs_bot.cpp +++ b/modules/core/bs_bot.cpp @@ -89,7 +89,7 @@ class CommandBSBot : public Command */ if (findnick(nick)) { - source.Reply(LanguageString::NICK_ALREADY_REGISTERED, nick.c_str()); + source.Reply(_(NICK_ALREADY_REGISTERED), nick.c_str()); return MOD_CONT; } @@ -125,13 +125,13 @@ class CommandBSBot : public Command if (!(bi = findbot(oldnick))) { - source.Reply(LanguageString::BOT_DOES_NOT_EXIST, oldnick.c_str()); + source.Reply(_(BOT_DOES_NOT_EXIST), oldnick.c_str()); return MOD_CONT; } if (!oldnick.equals_ci(nick) && nickIsServices(oldnick, false)) { - source.Reply(LanguageString::BOT_DOES_NOT_EXIST, oldnick.c_str()); + source.Reply(_(BOT_DOES_NOT_EXIST), oldnick.c_str()); return MOD_CONT; } @@ -155,7 +155,7 @@ class CommandBSBot : public Command if (!oldnick.equals_ci(nick) && nickIsServices(nick, false)) { - source.Reply(LanguageString::BOT_DOES_NOT_EXIST, oldnick.c_str()); + source.Reply(_(BOT_DOES_NOT_EXIST), oldnick.c_str()); return MOD_CONT; } @@ -219,7 +219,7 @@ class CommandBSBot : public Command */ if (findnick(nick)) { - source.Reply(LanguageString::NICK_ALREADY_REGISTERED, nick.c_str()); + source.Reply(_(NICK_ALREADY_REGISTERED), nick.c_str()); return MOD_CONT; } @@ -282,13 +282,13 @@ class CommandBSBot : public Command if (!(bi = findbot(nick))) { - source.Reply(LanguageString::BOT_DOES_NOT_EXIST, nick.c_str()); + source.Reply(_(BOT_DOES_NOT_EXIST), nick.c_str()); return MOD_CONT; } if (nickIsServices(nick, false)) { - source.Reply(LanguageString::BOT_DOES_NOT_EXIST, nick.c_str()); + source.Reply(_(BOT_DOES_NOT_EXIST), nick.c_str()); return MOD_CONT; } @@ -323,7 +323,7 @@ class CommandBSBot : public Command // ADD nick user host real - 5 if (!u->Account()->HasCommand("botserv/bot/add")) { - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); return MOD_CONT; } @@ -346,7 +346,7 @@ class CommandBSBot : public Command // but only oldn and newn are required if (!u->Account()->HasCommand("botserv/bot/change")) { - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); return MOD_CONT; } @@ -363,7 +363,7 @@ class CommandBSBot : public Command // DEL nick if (!u->Account()->HasCommand("botserv/bot/del")) { - source.Reply(LanguageString::ACCESS_DENIED); + source.Reply(_(ACCESS_DENIED)); return MOD_CONT; } |