From 0ba58d7d0eea4e2a0e0d18a66880f84af6fea60e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 18 Feb 2012 18:07:34 -0500 Subject: Fixed some events --- src/regchannel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit