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

Fixed some events

This commit is contained in:
Adam
2012-02-18 18:07:34 -05:00
parent 1536c5cf60
commit 0ba58d7d0e
5 changed files with 15 additions and 9 deletions
+4
View File
@@ -207,6 +207,8 @@ class CommandCSAKick : public Command
if (!Number || Number > ci->GetAkickCount())
return;
FOREACH_MOD(I_OnAkickDel, OnAkickDel(source.u, ci, ci->GetAkick(Number - 1)));
++Deleted;
ci->EraseAkick(Number - 1);
}
@@ -236,6 +238,8 @@ class CommandCSAKick : public Command
bool override = !ci->AccessFor(u).HasPriv("AKICK");
Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, ci) << "to delete " << mask;
FOREACH_MOD(I_OnAkickDel, OnAkickDel(u, ci, ci->GetAkick(i)));
ci->EraseAkick(i);
source.Reply(_("\002%s\002 deleted from %s autokick list."), mask.c_str(), ci->name.c_str());