aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-24 17:46:51 +0200
committerKim Alvefur <zash@zash.se>2018-09-24 17:46:51 +0200
commit486382eda5d989ef013a9eeedc221acc6ba45e61 (patch)
treec73a74b3d3d00a661c9e6747575e6c509a74f6e0 /plugins/mod_bosh.lua
parent9f0ece7fc61b428ba42381b23f454b974ce1953f (diff)
downloadprosody-486382eda5d989ef013a9eeedc221acc6ba45e61.tar.gz
prosody-486382eda5d989ef013a9eeedc221acc6ba45e61.zip
mod_bosh: Fire stream feature event on hosts (thanks gerald)
Since the module is now global, this event was also fired in a global context by default.
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index cab89a0a..251ef740 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -419,7 +419,7 @@ function stream_callbacks.streamopened(context, attr)
if session.notopen then
local features = st.stanza("stream:features");
- module:fire_event("stream-features", { origin = session, features = features });
+ module:context(session.host):fire_event("stream-features", { origin = session, features = features });
session.send(features);
session.notopen = nil;
end