summaryrefslogtreecommitdiff
path: root/src/protocol/charybdis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/charybdis.c')
-rw-r--r--src/protocol/charybdis.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c
index 9a8822b5b..6d16eeec5 100644
--- a/src/protocol/charybdis.c
+++ b/src/protocol/charybdis.c
@@ -655,6 +655,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;
}
@@ -701,8 +706,15 @@ int anope_event_tburst(char *source, int ac, char **av)
c->topic_time = topic_time;
record_topic(av[0]);
+
+ if (ac > 1 && *av[3])
+ send_event(EVENT_TOPIC_UPDATED, 2, av[0], av[3]);
+ else
+ send_event(EVENT_TOPIC_UPDATED, 2, av[0], "");
+
if (setter)
free(setter);
+
return MOD_CONT;
}