Comparison

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
comparison
equal deleted inserted replaced
1182:89e9f0d555a2 1183:565e16ee0c74
348 hooked:set(self.host, self.name, name, true); 348 hooked:set(self.host, self.name, name, true);
349 end 349 end
350 event_hooks:set(self.host, self.name, name, handler, true); 350 event_hooks:set(self.host, self.name, name, handler, true);
351 end 351 end
352 352
353 function api:fire_event(...)
354 return eventmanager.fire_event(...);
355 end
356
353 -------------------------------------------------------------------- 357 --------------------------------------------------------------------
354 358
355 local actions = {}; 359 local actions = {};
356 360
357 function actions.load(params) 361 function actions.load(params)