summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
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);
}