summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrobbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 16:11:40 +0000
committerrobbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 16:11:40 +0000
commitc968d32ee2570650cd8430a9dbd5375bcfdd26b5 (patch)
tree82333dd56b0b62efd852a4bb57570c6daa2cbe4b /src/core
parentdde05e96cff5b0c5d5587265e03b31c585f53424 (diff)
applied 1.8.0s fix for the /ns resend issue
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1698 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_register.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index a90c0ca0c..0a0e073ac 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -428,11 +428,11 @@ int do_resend(User * u)
if (NSEmailReg) {
if ((nr = findrequestnick(u->nick))) {
if (time(NULL) < nr->lastmail + NSResendDelay) {
- return MOD_CONT;
- } else {
- nr->lastmail = time(NULL);
+ notice_lang(s_NickServ, u, MAIL_LATER);
+ return MOD_CONT;
}
if (do_sendregmail(u, nr) == 0) {
+ nr->lastmail = time(NULL);
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);
} else {