From 05afac6dadc80607cd949cf5ba01ca53f119cccd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 19 May 2009 11:50:22 +0100 Subject: modulemanager: Add module:fire_event() to module API --- core/modulemanager.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/modulemanager.lua') 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 = {}; -- cgit v1.2.3