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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 3f89c8a1e..e37fd9be7 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -646,6 +646,11 @@ int anope_event_topic(char *source, int ac, char **av)
c->topic_time = topic_time;
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], "");
}
return MOD_CONT;
}