diff options
author | Adam <Adam@anope.org> | 2012-02-26 23:28:02 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-26 23:28:02 -0500 |
commit | 141b87bd141af8603a02cdc7ab5f63842340045d (patch) | |
tree | 120236326acc921006984b3843110e3fe5f4939b /modules/commands/cs_drop.cpp | |
parent | a5b9e235ae240439608aa743c9ebb3bf6e7d342a (diff) |
Changed the OnChanDrop event to be called right before channels are dropped, not after
Diffstat (limited to 'modules/commands/cs_drop.cpp')
-rw-r--r-- | modules/commands/cs_drop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_drop.cpp b/modules/commands/cs_drop.cpp index abdbed17e..d2d05c457 100644 --- a/modules/commands/cs_drop.cpp +++ b/modules/commands/cs_drop.cpp @@ -56,6 +56,8 @@ class CommandCSDrop : public Command bool override = (ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !ci->AccessFor(u).HasPriv("FOUNDER")); Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, ci) << "(founder was: " << (ci->GetFounder() ? ci->GetFounder()->display : "none") << ")"; + FOREACH_MOD(I_OnChanDrop, OnChanDrop(ci)); + Channel *c = ci->c; delete ci; @@ -64,8 +66,6 @@ class CommandCSDrop : public Command if (c) c->CheckModes(); - FOREACH_MOD(I_OnChanDrop, OnChanDrop(chan)); - return; } |