summaryrefslogtreecommitdiff
path: root/src/protocol/plexus2.c
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-12-10 12:27:56 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-12-10 12:27:56 +0000
commit3fb604b1c7c910489bb52939e8f20b71560eb2e6 (patch)
treef8f0fdf0b986b8f5e7211aa404da0dc6a7995522 /src/protocol/plexus2.c
parent01e6313e3af3252bff1b5e5977725ec24e029dfa (diff)
BUILD : 1.7.17 (1207) BUGS : 641 NOTES : Fixed EVENT_TOPIC_UPDATED not being sent when the topic was updated from within certain protocol modules
git-svn-id: svn://svn.anope.org/anope/trunk@1207 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@926 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/plexus2.c')
-rw-r--r--src/protocol/plexus2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol/plexus2.c b/src/protocol/plexus2.c
index 6c7f0f2b8..c4ad300af 100644
--- a/src/protocol/plexus2.c
+++ b/src/protocol/plexus2.c
@@ -666,6 +666,12 @@ 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;
}