1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 03:03:13 +02:00

Changed the OnChanDrop event to be called right before channels are dropped, not after

This commit is contained in:
Adam
2012-02-26 23:28:02 -05:00
parent a5b9e235ae
commit 141b87bd14
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
}