mirror of
https://github.com/anope/anope.git
synced 2026-07-03 00:03:13 +02:00
Finish rest of BotServ SQL stuff
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2839 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -350,6 +350,9 @@ BadWord *ChannelInfo::AddBadWord(const std::string &word, BadWordType type)
|
||||
bw->type = type;
|
||||
|
||||
badwords.push_back(bw);
|
||||
|
||||
FOREACH_MOD(I_OnBadWordAdd, OnBadWordAdd(this, bw));
|
||||
|
||||
return bw;
|
||||
}
|
||||
|
||||
@@ -382,6 +385,7 @@ void ChannelInfo::EraseBadWord(BadWord *badword)
|
||||
|
||||
if (it != badwords.end())
|
||||
{
|
||||
FOREACH_MOD(I_OnBadWordDel, OnBadWordDel(this, *it));
|
||||
delete *it;
|
||||
badwords.erase(it);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user