diff options
author | Adam <Adam@anope.org> | 2013-01-03 11:41:32 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-03 12:34:01 -0500 |
commit | 098157dca8a4aecc18294cbc31cbe5ee95b35a94 (patch) | |
tree | 654f00f21e151ba9007ca8eb044a78fef1bd6e39 /modules/pseudoclients/botserv.cpp | |
parent | 827469600e8cf98fea7aec09ceaa77a097300b72 (diff) |
Don't delete users immediately when quit or killed, instead wait until message processing is done
Diffstat (limited to 'modules/pseudoclients/botserv.cpp')
-rw-r--r-- | modules/pseudoclients/botserv.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/pseudoclients/botserv.cpp b/modules/pseudoclients/botserv.cpp index 6f9046957..3d4bf33f2 100644 --- a/modules/pseudoclients/botserv.cpp +++ b/modules/pseudoclients/botserv.cpp @@ -150,14 +150,11 @@ class BotServCore : public Module if (MOD_RESULT == EVENT_STOP) return; - Reference<User> user_reference(u); Reference<NickCore> nc_reference(u->Account()); cmd->Execute(source, params); - - if (user_reference && nc_reference) - { - FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, cmd, params)); - } + if (!nc_reference) + source.nc = NULL; + FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, cmd, params)); } void OnJoinChannel(User *user, Channel *c) anope_override |