1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 00:46:37 +02:00

Don't delete users immediately when quit or killed, instead wait until message processing is done

This commit is contained in:
Adam
2013-01-03 11:41:32 -05:00
parent 827469600e
commit 098157dca8
25 changed files with 133 additions and 114 deletions
+3 -6
View File
@@ -262,13 +262,10 @@ void RunCommand(CommandSource &source, const Anope::string &message)
return;
}
bool had_u = source.GetUser(), had_nc = source.nc;
Reference<User> user_reference(source.GetUser());
Reference<NickCore> nc_reference(source.nc);
c->Execute(source, params);
if (had_u == user_reference && had_nc == nc_reference)
{
FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, c, params));
}
if (!nc_reference)
source.nc = NULL;
FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, c, params));
}