summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-06 23:33:23 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-06 23:33:23 +0000
commit9ff6ed2430ed87014846b39456b31b7aba231e48 (patch)
tree0f61726fefb323c39696510ac38e5bc30d44fa2b /src/protocol/ratbox.c
parent2eae73808355d8a26886bfcf42f03db02e53f1e6 (diff)
New events stuff, patch totally by Adam (aka Awesome).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2313 5417fbe8-f217-4b02-8779-1006273d7864
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;
}