summaryrefslogtreecommitdiff
path: root/modules/nickserv/register.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-04-06 11:20:06 -0400
committerAdam <Adam@anope.org>2017-04-06 11:20:06 -0400
commit805ea3869c33889de3695c580b85e10d9a4bc147 (patch)
tree50fc994ac99611762bd77d6d10fe88a40e058be0 /modules/nickserv/register.cpp
parent2a886acbedb6b6386dbff3e591b0d4035d516b2a (diff)
Move nc->lastmail to a field
Diffstat (limited to 'modules/nickserv/register.cpp')
-rw-r--r--modules/nickserv/register.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nickserv/register.cpp b/modules/nickserv/register.cpp
index cb6f85dc5..13c18e0b3 100644
--- a/modules/nickserv/register.cpp
+++ b/modules/nickserv/register.cpp
@@ -339,7 +339,7 @@ class CommandNSResend : public Command
return;
}
- if (Anope::CurTime < source.nc->lastmail + Config->GetModule(this->GetOwner())->Get<time_t>("resenddelay"))
+ if (Anope::CurTime < source.nc->GetLastMail() + Config->GetModule(this->GetOwner())->Get<time_t>("resenddelay"))
{
source.Reply(_("Cannot send mail now; please retry a little later."));
return;
@@ -351,7 +351,7 @@ class CommandNSResend : public Command
return;
}
- na->GetAccount()->lastmail = Anope::CurTime;
+ na->GetAccount()->SetLastMail(Anope::CurTime);
source.Reply(_("Your passcode has been re-sent to \002{0}\002."), na->GetAccount()->GetEmail());
logger.Command(LogType::COMMAND, source, _("{source} used {command} to resend registration verification code"));
}