From 164eafbaac4dba0c855bde72bed6e8fcddd3431b Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 18 Oct 2009 23:40:24 +0000 Subject: Stop recvq processing when a user is marked as quitting git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@11913 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index f7d57daf9..e371e8810 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -402,15 +402,12 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd) MOD_RESULT = 0; FOREACH_RESULT(I_OnPreCommand,OnPreCommand(command, command_p, user, true, cmd)); if (MOD_RESULT == 1) - return do_more; + return do_more && !user->quitting; - /* - * WARNING: be careful, the user may be deleted soon - */ CmdResult result = cm->second->Handle(command_p, user); FOREACH_MOD(I_OnPostCommand,OnPostCommand(command, command_p, user, result,cmd)); - return do_more; + return do_more && !user->quitting; } } -- cgit v1.3.1-10-gc9f91