1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 07:26: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
+3 -3
View File
@@ -39,9 +39,9 @@ class CommandBSKick : public Command
else if (!value.equals_ci("ON") && !value.equals_ci("OFF"))
SyntaxError(source, "KICK", _("KICK \037channel\037 \037option\037 {\037ON|\037} [\037settings\037]"));
else if (!check_access(u, ci, CA_SET) && !u->Account()->HasPriv("botserv/administration"))
source.Reply(LanguageString::ACCESS_DENIED);
source.Reply(_(ACCESS_DENIED));
else if (!ci->bi)
source.Reply(LanguageString::BOT_NOT_ASSIGNED);
source.Reply(_(BOT_NOT_ASSIGNED));
else
{
bool override = !check_access(u, ci, CA_SET);
@@ -451,7 +451,7 @@ class CommandBSKick : public Command
}
}
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;
}