1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 17:23:13 +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
@@ -41,12 +41,12 @@ class CommandMSIgnore : public Command
if (!mi)
{
if (isforbid)
source.Reply(ischan ? LanguageString::CHAN_X_FORBIDDEN : LanguageString::NICK_X_FORBIDDEN, channel.c_str());
source.Reply(ischan ? _(CHAN_X_FORBIDDEN) : _(NICK_X_FORBIDDEN), channel.c_str());
else
source.Reply(ischan ? LanguageString::CHAN_X_NOT_REGISTERED : LanguageString::NICK_X_NOT_REGISTERED, channel.c_str());
source.Reply(ischan ? _(CHAN_X_NOT_REGISTERED) : _(NICK_X_NOT_REGISTERED), channel.c_str());
}
else if (ischan && !check_access(u, cs_findchan(channel), CA_MEMO))
source.Reply(LanguageString::ACCESS_DENIED);
source.Reply(_(ACCESS_DENIED));
else if (command.equals_ci("ADD") && !param.empty())
{
if (std::find(mi->ignores.begin(), mi->ignores.end(), param.ci_str()) == mi->ignores.end())