diff options
author | Adam <Adam@anope.org> | 2012-02-18 18:07:34 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-18 18:07:34 -0500 |
commit | 0ba58d7d0eea4e2a0e0d18a66880f84af6fea60e (patch) | |
tree | 58d0311a585ebfef9abb304a412226505e0febfe /src | |
parent | 1536c5cf60dd183fb5c98651decde381a91ada44 (diff) |
Fixed some events
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 4 |
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); |