summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_register.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 4eb26c625..f2b3f1ad8 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -449,6 +449,11 @@ int do_resend(User * u)
NickRequest *nr = NULL;
if (NSEmailReg) {
if ((nr = findrequestnick(u->nick))) {
+ if (time(NULL) < nr->lastmail + NSResendDelay) {
+ return MOD_CONT;
+ } else {
+ nr->lastmail = time(NULL);
+ }
if (do_sendregmail(u, nr) == 0) {
notice_lang(s_NickServ, u, NICK_REG_RESENT, nr->email);
alog("%s: re-sent registration verification code for %s to %s", s_NickServ, nr->nick, nr->email);