Diff

core/modulemanager.lua @ 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
parent 1174:f7b6d5839092
child 1231:6f251813f1e5
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 = {};