modulemanager: Add module:fire_event() to module API

Tue, 19 May 2009 11:50:22 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 19 May 2009 11:50:22 +0100
changeset 1183
565e16ee0c74
parent 1182
89e9f0d555a2
child 1184
fa6df7e83fb3

modulemanager: Add module:fire_event() to module API

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- 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 = {};

mercurial