Changeset

9380:7425af27fc67

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.
author Kim Alvefur <zash@zash.se>
date Mon, 24 Sep 2018 17:46:51 +0200
parents 9379:866cba3689f4
children 9381:80be543a3785
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Sun Sep 23 18:59:04 2018 +0200
+++ b/plugins/mod_bosh.lua	Mon Sep 24 17:46:51 2018 +0200
@@ -419,7 +419,7 @@
 
 	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