summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-31 04:41:56 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-31 04:41:56 +0000
commitb55ac06019785b308ac1ead44414f8c6dee226fc (patch)
tree513033038be0a1a327b8dc714936d29d2f742353 /src/regchannel.cpp
parenteaf211d59ca799719970f2789758eff6bc269eab (diff)
Added akicks into SQL
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2848 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 1dcf9f515..1925baf77 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -264,6 +264,9 @@ AutoKick *ChannelInfo::AddAkick(const std::string &user, NickCore *akicknc, cons
autokick->last_used = lu;
akick.push_back(autokick);
+
+ FOREACH_MOD(I_OnAkickAdd, OnAkickAdd(this, autokick));
+
return autokick;
}
@@ -286,6 +289,9 @@ AutoKick *ChannelInfo::AddAkick(const std::string &user, const std::string &mask
autokick->last_used = lu;
akick.push_back(autokick);
+
+ FOREACH_MOD(I_OnAkickAdd, OnAkickAdd(this, autokick));
+
return autokick;
}
@@ -318,6 +324,8 @@ void ChannelInfo::EraseAkick(AutoKick *autokick)
if (it != akick.end())
{
+ FOREACH_MOD(I_OnAkickDel, OnAkickDel(this, *it));
+
delete *it;
akick.erase(it);
}