1
0
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:
Adam-
2010-03-28 07:57:05 +00:00
parent aa90411f3a
commit f4bcf833ec
5 changed files with 207 additions and 6 deletions
+4
View File
@@ -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);
}