summaryrefslogtreecommitdiff
path: root/modules/core/ns_access.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/ns_access.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/ns_access.cpp')
-rw-r--r--modules/core/ns_access.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/ns_access.cpp b/modules/core/ns_access.cpp
index d79f189ca..bd637cbaa 100644
--- a/modules/core/ns_access.cpp
+++ b/modules/core/ns_access.cpp
@@ -29,7 +29,7 @@ class CommandNSAccess : public Command
if (nc->HasFlag(NI_SUSPENDED))
{
- source.Reply(LanguageString::NICK_X_SUSPENDED, nc->display.c_str());
+ source.Reply(_(NICK_X_SUSPENDED), nc->display.c_str());
return MOD_CONT;
}
@@ -132,11 +132,11 @@ class CommandNSAccess : public Command
if (!mask.empty() && mask.find('@') == Anope::string::npos)
{
- source.Reply(LanguageString::BAD_USERHOST_MASK);
- source.Reply(LanguageString::MORE_INFO, Config->s_NickServ.c_str(), "ACCESS");
+ source.Reply(_(BAD_USERHOST_MASK));
+ source.Reply(_(MORE_INFO), Config->s_NickServ.c_str(), "ACCESS");
}
else if (u->Account()->HasFlag(NI_SUSPENDED))
- source.Reply(LanguageString::NICK_X_SUSPENDED, u->Account()->display.c_str());
+ source.Reply(_(NICK_X_SUSPENDED), u->Account()->display.c_str());
else if (cmd.equals_ci("ADD"))
return this->DoAdd(source, u->Account(), mask);
else if (cmd.equals_ci("DEL"))