summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorlethality <lethality@anope.org>2012-02-23 00:04:36 +0000
committerlethality <lethality@anope.org>2012-02-23 00:04:36 +0000
commitf01aab5f9bf5c14162438d1707e6e6cd9730c703 (patch)
tree4df360cd61e7dd1fd749d90e9dbe9e3cf1d739af /src/regchannel.cpp
parent826de43724d4584f9150a1fb8cebe8f49d9431a7 (diff)
parent3850b073ddf610415de54dced9ff134397779676 (diff)
Merge branch '1.9' of ssh://anope.git.sf.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 34a578917..25526ee8b 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -660,7 +660,7 @@ void ChannelInfo::EraseAkick(unsigned index)
{
if (this->akick.empty() || index >= this->akick.size())
return;
-
+
delete this->akick[index];
this->akick.erase(this->akick.begin() + index);
}
@@ -719,6 +719,8 @@ void ChannelInfo::EraseBadWord(unsigned index)
{
if (this->badwords.empty() || index >= this->badwords.size())
return;
+
+ FOREACH_MOD(I_OnBadWordDel, OnBadWordDel(this, this->badwords[index]));
delete this->badwords[index];
this->badwords.erase(this->badwords.begin() + index);