diff options
Diffstat (limited to 'src/protocol/shadowircd.c')
-rw-r--r-- | src/protocol/shadowircd.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/protocol/shadowircd.c b/src/protocol/shadowircd.c index c02b70913..cc2b3c16d 100644 --- a/src/protocol/shadowircd.c +++ b/src/protocol/shadowircd.c @@ -685,6 +685,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; } @@ -731,8 +736,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; } |