diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-19 11:50:22 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-19 11:50:22 +0100 |
commit | 05afac6dadc80607cd949cf5ba01ca53f119cccd (patch) | |
tree | db05db7e35570c7f97aa89d91e506032dc8aab84 /core/modulemanager.lua | |
parent | ad2660e96e9f4d839c385583e548eb5edd14767c (diff) | |
download | prosody-05afac6dadc80607cd949cf5ba01ca53f119cccd.tar.gz prosody-05afac6dadc80607cd949cf5ba01ca53f119cccd.zip |
modulemanager: Add module:fire_event() to module API
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 4 |
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 = {}; |