summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r--src/protocol/ratbox.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index d87d0b64e..261aeb031 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -782,10 +782,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[1]));
+ }
+ else {
+ FOREACH_MOD(I_OnTopicUpdated, OnTopicUpdated(c, ""));
+ }
}
return MOD_CONT;
}