1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 07:06:38 +02:00

Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt

This commit is contained in:
Adam
2011-02-26 17:54:03 -05:00
parent 28d17a40ce
commit f234a2bfab
107 changed files with 619 additions and 630 deletions
+4 -4
View File
@@ -30,26 +30,26 @@ class CommandBSAssign : public Command
if (readonly)
{
source.Reply(LanguageString::BOT_ASSIGN_READONLY);
source.Reply(_(BOT_ASSIGN_READONLY));
return MOD_CONT;
}
BotInfo *bi = findbot(nick);
if (!bi)
{
source.Reply(LanguageString::BOT_DOES_NOT_EXIST, nick.c_str());
source.Reply(_(BOT_DOES_NOT_EXIST), nick.c_str());
return MOD_CONT;
}
if (ci->botflags.HasFlag(BS_NOBOT) || (!check_access(u, ci, CA_ASSIGN) && !u->Account()->HasPriv("botserv/administration")))
{
source.Reply(LanguageString::ACCESS_DENIED);
source.Reply(_(ACCESS_DENIED));
return MOD_CONT;
}
if (bi->HasFlag(BI_PRIVATE) && !u->Account()->HasCommand("botserv/assign/private"))
{
source.Reply(LanguageString::ACCESS_DENIED);
source.Reply(_(ACCESS_DENIED));
return MOD_CONT;
}