summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-13 20:07:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-13 20:07:19 +0000
commitc06d4197afe3830ab6c28d55e8889d1cad36282c (patch)
treed08b78e59acd7273c4a3d0139e2c7bc64d169fb4 /src/command_parse.cpp
parent7b3b742d63c33518a9de080f8de3bc1623557a8c (diff)
Special check in cmd_quit and cmd_kill and special return value CMD_USER_DELETED, to prevent theoretical segfault (this isnt the bug youre trying to find, pip)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5230 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 1545c8e1b..5cc85a2a3 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -386,7 +386,10 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
*/
CmdResult result = cm->second->Handle(command_p,items,user);
- FOREACH_MOD(I_OnPostCommand,OnPostCommand(command, command_p, items, user, result));
+ if (result != CMD_USER_DELETED)
+ {
+ FOREACH_MOD(I_OnPostCommand,OnPostCommand(command, command_p, items, user, result));
+ }
return;
}
else