1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 01:06:39 +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
+5 -5
View File
@@ -36,12 +36,12 @@ class CommandMSInfo : public Command
na = findnick(nname);
if (!na)
{
source.Reply(LanguageString::NICK_X_NOT_REGISTERED, nname.c_str());
source.Reply(_(NICK_X_NOT_REGISTERED), nname.c_str());
return MOD_CONT;
}
else if (na->HasFlag(NS_FORBIDDEN))
{
source.Reply(LanguageString::NICK_X_FORBIDDEN, nname.c_str());
source.Reply(_(NICK_X_FORBIDDEN), nname.c_str());
return MOD_CONT;
}
mi = &na->nc->memos;
@@ -51,12 +51,12 @@ class CommandMSInfo : public Command
{
if (!(ci = cs_findchan(nname)))
{
source.Reply(LanguageString::CHAN_X_NOT_REGISTERED, nname.c_str());
source.Reply(_(CHAN_X_NOT_REGISTERED), nname.c_str());
return MOD_CONT;
}
else if (!check_access(u, ci, CA_MEMO))
{
source.Reply(LanguageString::ACCESS_DENIED);
source.Reply(_(ACCESS_DENIED));
return MOD_CONT;
}
mi = &ci->memos;
@@ -64,7 +64,7 @@ class CommandMSInfo : public Command
}
else if (!nname.empty()) /* It's not a chan and we aren't services admin */
{
source.Reply(LanguageString::ACCESS_DENIED);
source.Reply(_(ACCESS_DENIED));
return MOD_CONT;
}
else