Software /
code /
prosody
Changeset
1183:565e16ee0c74
modulemanager: Add module:fire_event() to module API
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 May 2009 11:50:22 +0100 |
parents | 1182:89e9f0d555a2 |
children | 1184:fa6df7e83fb3 |
files | core/modulemanager.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/modulemanager.lua Tue May 19 01:07:03 2009 +0500 +++ b/core/modulemanager.lua Tue May 19 11:50:22 2009 +0100 @@ -350,6 +350,10 @@ event_hooks:set(self.host, self.name, name, handler, true); end +function api:fire_event(...) + return eventmanager.fire_event(...); +end + -------------------------------------------------------------------- local actions = {};