From b532d20ef344a600a0cf743f1e35668bac969ce2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 24 Sep 2018 17:46:51 +0200 Subject: 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. --- plugins/mod_bosh.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3