mirror of
https://github.com/anope/anope.git
synced 2026-06-28 13:56: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:
@@ -69,12 +69,12 @@ class CommandMSRead : public Command
|
||||
|
||||
if (!(ci = cs_findchan(chan)))
|
||||
{
|
||||
source.Reply(LanguageString::CHAN_X_NOT_REGISTERED, chan.c_str());
|
||||
source.Reply(_(CHAN_X_NOT_REGISTERED), chan.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;
|
||||
@@ -87,9 +87,9 @@ class CommandMSRead : public Command
|
||||
else if (mi->memos.empty())
|
||||
{
|
||||
if (!chan.empty())
|
||||
source.Reply(LanguageString::MEMO_X_HAS_NO_MEMOS, chan.c_str());
|
||||
source.Reply(_(MEMO_X_HAS_NO_MEMOS), chan.c_str());
|
||||
else
|
||||
source.Reply(LanguageString::MEMO_HAVE_NO_MEMOS);
|
||||
source.Reply(_(MEMO_HAVE_NO_MEMOS));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -107,9 +107,9 @@ class CommandMSRead : public Command
|
||||
if (!readcount)
|
||||
{
|
||||
if (!chan.empty())
|
||||
source.Reply(LanguageString::MEMO_X_HAS_NO_NEW_MEMOS, chan.c_str());
|
||||
source.Reply(_(MEMO_X_HAS_NO_NEW_MEMOS), chan.c_str());
|
||||
else
|
||||
source.Reply(LanguageString::MEMO_HAVE_NO_NEW_MEMOS);
|
||||
source.Reply(_(MEMO_HAVE_NO_NEW_MEMOS));
|
||||
}
|
||||
}
|
||||
else if (numstr.equals_ci("LAST"))
|
||||
|
||||
Reference in New Issue
Block a user