summaryrefslogtreecommitdiff
path: root/modules/core/ms_read.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-26 17:54:03 -0500
committerAdam <Adam@anope.org>2011-02-26 17:54:03 -0500
commitf234a2bfab8a4d900cfc0df91afed530d80738d4 (patch)
tree0224eb342a7d60cee86995bd87910f858d7a2e53 /modules/core/ms_read.cpp
parent28d17a40cef64783addf177fa30fb267db2cbde7 (diff)
Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt
Diffstat (limited to 'modules/core/ms_read.cpp')
-rw-r--r--modules/core/ms_read.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/ms_read.cpp b/modules/core/ms_read.cpp
index 0c9be0a61..6e1c302cb 100644
--- a/modules/core/ms_read.cpp
+++ b/modules/core/ms_read.cpp
@@ -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"))