1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 03:36:38 +02:00

Fixed some events

This commit is contained in:
Adam
2012-02-18 18:07:34 -05:00
parent 1536c5cf60
commit 0ba58d7d0e
5 changed files with 15 additions and 9 deletions
+3 -1
View File
@@ -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);