aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-19 11:50:22 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-19 11:50:22 +0100
commit05afac6dadc80607cd949cf5ba01ca53f119cccd (patch)
treedb05db7e35570c7f97aa89d91e506032dc8aab84
parentad2660e96e9f4d839c385583e548eb5edd14767c (diff)
downloadprosody-05afac6dadc80607cd949cf5ba01ca53f119cccd.tar.gz
prosody-05afac6dadc80607cd949cf5ba01ca53f119cccd.zip
modulemanager: Add module:fire_event() to module API
-rw-r--r--core/modulemanager.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index b1416b32..57a44c29 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -350,6 +350,10 @@ function api:add_event_hook(name, handler)
event_hooks:set(self.host, self.name, name, handler, true);
end
+function api:fire_event(...)
+ return eventmanager.fire_event(...);
+end
+
--------------------------------------------------------------------
local actions = {};