summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-28 07:57:05 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-28 07:57:05 +0000
commitf4bcf833ecb4c139544bf6de5fadabca56e016e9 (patch)
tree16beb2e9a5aa055aebb1e8391207fff7000b68f6 /src/regchannel.cpp
parentaa90411f3ad2361db810a064906c2d8047a8ff92 (diff)
Finish rest of BotServ SQL stuff
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2839 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 706746422..1f4542948 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -350,6 +350,9 @@ BadWord *ChannelInfo::AddBadWord(const std::string &word, BadWordType type)
bw->type = type;
badwords.push_back(bw);
+
+ FOREACH_MOD(I_OnBadWordAdd, OnBadWordAdd(this, bw));
+
return bw;
}
@@ -382,6 +385,7 @@ void ChannelInfo::EraseBadWord(BadWord *badword)
if (it != badwords.end())
{
+ FOREACH_MOD(I_OnBadWordDel, OnBadWordDel(this, *it));
delete *it;
badwords.erase(it);
}