1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 01:43:13 +02:00

New events stuff, patch totally by Adam (aka Awesome).

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2313 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-06-06 23:33:23 +00:00
parent 2eae738083
commit 9ff6ed2430
32 changed files with 386 additions and 177 deletions
+6 -4
View File
@@ -968,10 +968,12 @@ int anope_event_topic(const char *source, int ac, const char **av)
record_topic(av[0]);
if (ac > 1 && *av[1])
send_event(EVENT_TOPIC_UPDATED, 2, av[0], av[1]);
else
send_event(EVENT_TOPIC_UPDATED, 2, av[0], "");
if (ac > 1 && *av[1]) {
FOREACH_MOD(I_OnTopicUpdated, OnTopicUpdated(c, av[0]));
}
else {
FOREACH_MOD(I_OnTopicUpdated, OnTopicUpdated(c, ""));
}
return MOD_CONT;
}