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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user