diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-11 00:29:07 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-11 00:29:07 +0000 |
commit | 1e9de0c7f146ec00d2dd6ee4cb9d86860a03ea9f (patch) | |
tree | c653f724f60fa569c62a8b44eab4c147d52f1b40 /src/core/ns_ghost.c | |
parent | 626afff37d1a31b2427700ac5a1dbdb32171afbc (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_ghost.c')
-rw-r--r-- | src/core/ns_ghost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ns_ghost.c b/src/core/ns_ghost.c index 49c36b303..72b02efae 100644 --- a/src/core/ns_ghost.c +++ b/src/core/ns_ghost.c @@ -54,7 +54,8 @@ class CommandNSGhost : public Command if (!res) { Alog() << Config.s_NickServ << ": GHOST: invalid password for " << nick << " by " << u->GetMask(); - bad_password(u); + if (bad_password(u)) + return MOD_STOP; } } } |