summaryrefslogtreecommitdiff
path: root/src/core/ns_recover.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-11 00:29:07 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-11 00:29:07 +0000
commit1e9de0c7f146ec00d2dd6ee4cb9d86860a03ea9f (patch)
treec653f724f60fa569c62a8b44eab4c147d52f1b40 /src/core/ns_recover.c
parent626afff37d1a31b2427700ac5a1dbdb32171afbc (diff)
Return MOD_STOP in various places where the user executing the command had been killed, fixes a crash if a user gets killed for too many invalid passwords
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2885 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ns_recover.c')
-rw-r--r--src/core/ns_recover.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ns_recover.c b/src/core/ns_recover.c
index 0937d6891..3a0a9cedd 100644
--- a/src/core/ns_recover.c
+++ b/src/core/ns_recover.c
@@ -62,7 +62,8 @@ class CommandNSRecover : public Command
if (!res)
{
Alog() << Config.s_NickServ << ": RECOVER: invalid password for " << nick << " by " << u->GetMask();
- bad_password(u);
+ if (bad_password(u))
+ return MOD_STOP;
}
}
}