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:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user