Software /
code /
prosody
Diff
core/modulemanager.lua @ 1250:ef053ab86f5e
modulemanager: module:fire_event now fires on the global and host-specific events objects as well
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 31 May 2009 01:11:48 +0500 |
parent | 1248:9a482f76a20a |
child | 1253:60156584c442 |
line wrap: on
line diff
--- a/core/modulemanager.lua Sun May 31 01:01:52 2009 +0500 +++ b/core/modulemanager.lua Sun May 31 01:11:48 2009 +0500 @@ -352,6 +352,8 @@ end function api:fire_event(...) + local r = (hosts[self.host] or prosody).events.fire_event(...); + if r ~= nil then return r; end return eventmanager.fire_event(...); end