summaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:04:13 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:04:13 +0000
commit6a9fa9f4d2ead592eb51a014491ce3aaee2029e8 (patch)
tree454479f2c8ef69a52e461416be42fd94d8b15955 /src/channels.c
parent5fc268b7509f20cbf1243b99f2669033b93db00e (diff)
Rewrote all of the defcon code, and moved most of it to os_defcon. This fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c
index dbc39e409..3e921e182 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -1884,6 +1884,8 @@ Channel *chan_create(const char *chan, time_t ts)
restore_topic(chan);
}
+ FOREACH_MOD(I_OnChannelCreate, OnChannelCreate(c));
+
return c;
}
@@ -1895,6 +1897,8 @@ void chan_delete(Channel * c)
{
BanData *bd, *next;
+ FOREACH_MOD(I_OnChannelDelete, OnChannelDelete(c));
+
if (debug)
alog("debug: Deleting channel %s", c->name);