# HG changeset patch # User Matthew Wild # Date 1242730222 -3600 # Node ID 565e16ee0c744e68a5bb4e8407a51df02d4101b5 # Parent 89e9f0d555a258c75d80bab56398d083dbb73004 modulemanager: Add module:fire_event() to module API diff -r 89e9f0d555a2 -r 565e16ee0c74 core/modulemanager.lua --- 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 = {};