From 0d486d4e0b3617e35e288cd524ceb09515c0c51d Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Thu, 15 Dec 2016 07:03:52 +0100
Subject: mod_disco: Update to account for new intermediate session type (from
 9f70d35a1602)

---
 plugins/mod_disco.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins')

diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index 61749580..c9d4a9df 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -148,7 +148,7 @@ end);
 
 -- 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);
-- 
cgit v1.2.3