summaryrefslogtreecommitdiff
path: root/modules/core/bs_bot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/bs_bot.cpp')
-rw-r--r--modules/core/bs_bot.cpp20
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;
}