summaryrefslogtreecommitdiff
path: root/src/chanserv.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-02-14 06:01:38 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-02-14 06:01:38 +0000
commit59f3a38ffd13b9fa2d31b89efa7558f4919c810b (patch)
tree1431c63a2ebccbacb4b6f41e7716498a9e4cd970 /src/chanserv.c
parentf19412921768cfadec42215e538588108d3c8b40 (diff)
BUILD : 1.7.8 (574) BUGS : N/A NOTES : Internal Events, Win32 can build with encryption, nickIsServices() works if format is nick@services
git-svn-id: svn://svn.anope.org/anope/trunk@574 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@424 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
-rw-r--r--src/chanserv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index ce8863133..30d794231 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -1740,6 +1740,7 @@ void record_topic(const char *chan)
ci->last_topic = NULL;
strscpy(ci->last_topic_setter, c->topic_setter, NICKMAX);
ci->last_topic_time = c->topic_time;
+ send_event(EVENT_TOPIC_UPDATED, chan);
}
/*************************************************************************/
@@ -1871,6 +1872,7 @@ void expire_chans()
next = ci->next;
if (!ci->c && now - ci->last_used >= CSExpire
&& !(ci->flags & (CI_VERBOTEN | CI_NO_EXPIRE))) {
+ send_event(EVENT_CHAN_EXPIRE, ci->name);
alog("Expiring channel %s (founder: %s)", ci->name,
(ci->founder ? ci->founder->display : "(none)"));
delchan(ci);
@@ -2789,6 +2791,7 @@ static int do_register(User * u)
anope_cmd_mode(s_ChanServ, chan, "%s %s", ircd->ownerset,
u->nick);
}
+ send_event(EVENT_CHAN_REGISTERED, chan);
}
return MOD_CONT;
}
@@ -2945,6 +2948,7 @@ static int do_drop(User * u)
chan);
notice_lang(s_ChanServ, u, CHAN_DROPPED, chan);
+ send_event(EVENT_CHAN_DROP, chan);
}
return MOD_CONT;
}
@@ -6371,6 +6375,7 @@ static int do_forbid(User * u)
alog("%s: %s set FORBID for channel %s", s_ChanServ, u->nick,
ci->name);
notice_lang(s_ChanServ, u, CHAN_FORBID_SUCCEEDED, chan);
+ send_event(EVENT_CHAN_FORBIDDEN, chan);
} else {
alog("%s: Valid FORBID for %s by %s failed", s_ChanServ, ci->name,
u->nick);
@@ -6444,6 +6449,7 @@ static int do_suspend(User * u)
alog("%s: %s set SUSPEND for channel %s", s_ChanServ, u->nick,
ci->name);
notice_lang(s_ChanServ, u, CHAN_SUSPEND_SUCCEEDED, chan);
+ send_event(EVENT_CHAN_SUSPENDED, chan);
} else {
alog("%s: Valid SUSPEND for %s by %s failed", s_ChanServ, ci->name,
u->nick);
@@ -6486,6 +6492,7 @@ static int do_unsuspend(User * u)
alog("%s: %s set UNSUSPEND for channel %s", s_ChanServ, u->nick,
ci->name);
notice_lang(s_ChanServ, u, CHAN_UNSUSPEND_SUCCEEDED, chan);
+ send_event(EVENT_CHAN_UNSUSPEND, chan);
} else {
alog("%s: Valid UNSUSPEND for %s by %s failed", s_ChanServ,
chan, u->nick);