diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2011-06-13 18:20:22 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2011-06-13 18:20:22 +0200 |
commit | 1cd65878dbdae1d64f70522c3586897a9a7adc36 (patch) | |
tree | 30aefc309b0e06b254993a39760abe377bf7bfa7 /modules/core/ns_resetpass.cpp | |
parent | 6148ffa66932e1d85a5f9a90298624da583ce5ed (diff) |
changed some _() to gtl() and updated do_strftime() and duration()
Diffstat (limited to 'modules/core/ns_resetpass.cpp')
-rw-r--r-- | modules/core/ns_resetpass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/core/ns_resetpass.cpp b/modules/core/ns_resetpass.cpp index d84f12e24..903e136fb 100644 --- a/modules/core/ns_resetpass.cpp +++ b/modules/core/ns_resetpass.cpp @@ -138,8 +138,8 @@ static bool SendResetEmail(User *u, NickAlias *na) for (idx = 0; idx < 20; ++idx) passcode += chars[1 + static_cast<int>((static_cast<float>(max - min)) * getrandom16() / 65536.0) + min]; - Anope::string subject = Anope::printf(GetString(na->nc, "Reset password request for %s").c_str(), na->nick.c_str()); - Anope::string message = Anope::printf(GetString(na->nc, + Anope::string subject = Anope::printf(GetString(na->nc, gtl("Reset password request for %s")).c_str(), na->nick.c_str()); + Anope::string message = Anope::printf(GetString(na->nc, gtl( "Hi,\n" " \n" "You have requested to have the password for %s reset.\n" @@ -147,7 +147,7 @@ static bool SendResetEmail(User *u, NickAlias *na) " \n" "If you don't know why this mail was sent to you, please ignore it silently.\n" " \n" - "%s administrators.").c_str(), na->nick.c_str(), Config->UseStrictPrivMsgString.c_str(), Config->s_NickServ.c_str(), na->nick.c_str(), passcode.c_str(), Config->NetworkName.c_str()); + "%s administrators.")).c_str(), na->nick.c_str(), Config->UseStrictPrivMsgString.c_str(), Config->s_NickServ.c_str(), na->nick.c_str(), passcode.c_str(), Config->NetworkName.c_str()); na->nc->Extend("ns_resetpass_code", new ExtensibleItemRegular<Anope::string>(passcode)); na->nc->Extend("ns_resetpass_time", new ExtensibleItemRegular<time_t>(Anope::CurTime)); |