1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 05:56: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
+2 -2
View File
@@ -436,7 +436,7 @@ bool IRCdMessage::OnPrivmsg(const Anope::string &source, const std::vector<Anope
else if (bi == ChanServ)
{
if (!u->HasMode(UMODE_OPER) && Config->CSOpersOnly)
u->SendMessage(ChanServ, LanguageString::ACCESS_DENIED);
u->SendMessage(ChanServ, _(ACCESS_DENIED));
else
mod_run_cmd(bi, u, NULL, message);
}
@@ -451,7 +451,7 @@ bool IRCdMessage::OnPrivmsg(const Anope::string &source, const std::vector<Anope
{
if (!u->HasMode(UMODE_OPER) && Config->OSOpersOnly)
{
u->SendMessage(OperServ, LanguageString::ACCESS_DENIED);
u->SendMessage(OperServ, _(ACCESS_DENIED));
if (Config->WallBadOS)
ircdproto->SendGlobops(OperServ, "Denied access to %s from %s!%s@%s (non-oper)", Config->s_OperServ.c_str(), u->nick.c_str(), u->GetIdent().c_str(), u->host.c_str());
}