summaryrefslogtreecommitdiff
path: root/modules/core/ns_resetpass.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_resetpass.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_resetpass.cpp')
-rw-r--r--modules/core/ns_resetpass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/ns_resetpass.cpp b/modules/core/ns_resetpass.cpp
index 07b918125..068cb2b4f 100644
--- a/modules/core/ns_resetpass.cpp
+++ b/modules/core/ns_resetpass.cpp
@@ -30,11 +30,11 @@ class CommandNSResetPass : public Command
NickAlias *na;
if (Config->RestrictMail && (!u->Account() || !u->Account()->HasCommand("nickserv/resetpass")))
- source.Reply(LanguageString::ACCESS_DENIED);
+ source.Reply(_(ACCESS_DENIED));
if (!(na = findnick(params[0])))
- source.Reply(LanguageString::NICK_X_NOT_REGISTERED, params[0].c_str());
+ source.Reply(_(NICK_X_NOT_REGISTERED), params[0].c_str());
else if (na->HasFlag(NS_FORBIDDEN))
- source.Reply(LanguageString::NICK_X_FORBIDDEN, na->nick.c_str());
+ source.Reply(_(NICK_X_FORBIDDEN), na->nick.c_str());
else
{
if (SendResetEmail(u, na))
@@ -126,7 +126,7 @@ class NSResetPass : public Module
else
{
Log(LOG_COMMAND, u, &commandnsresetpass) << "invalid confirm passcode for " << na->nick;
- source.Reply(LanguageString::NICK_CONFIRM_INVALID);
+ source.Reply(_(NICK_CONFIRM_INVALID));
bad_password(u);
}