aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-31 01:11:48 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-31 01:11:48 +0500
commit3ca6b44ad6d350d03975fcde862288921dd316c8 (patch)
tree171eac03a9fcc2bfc750aa06c1c89343c45343dc
parent35e4dd99787f5c6c25d59095dca610b5d52b3e29 (diff)
downloadprosody-3ca6b44ad6d350d03975fcde862288921dd316c8.tar.gz
prosody-3ca6b44ad6d350d03975fcde862288921dd316c8.zip
modulemanager: module:fire_event now fires on the global and host-specific events objects as well
-rw-r--r--core/modulemanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 464fd804..b166682b 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -352,6 +352,8 @@ function api:add_event_hook(name, handler)
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