Changeset

7787:200f1f6306a7

mod_disco: Update to account for new intermediate session type (from 9f70d35a1602)
author Kim Alvefur <zash@zash.se>
date Thu, 15 Dec 2016 07:03:52 +0100
parents 7785:cdffbda59b03
children 7788:cf1d7e35a160 7789:93dd90309779
files plugins/mod_disco.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_disco.lua	Tue Dec 13 18:16:20 2016 +0100
+++ b/plugins/mod_disco.lua	Thu Dec 15 07:03:52 2016 +0100
@@ -148,7 +148,7 @@
 
 -- Handle caps stream feature
 module:hook("stream-features", function (event)
-	if event.origin.type == "c2s" then
+	if event.origin.type == "c2s" or event.origin.type == "c2s_unauthed" then
 		event.features:add_child(get_server_caps_feature());
 	end
 end);