Diff

plugins/mod_disco.lua @ 8188:8c524b7c9017

mod_disco: Advertise in stream-features after auth (probably what was meant in 200f1f6306a7) (fixes #957)
author Kim Alvefur <zash@zash.se>
date Thu, 27 Jul 2017 14:10:18 +0200
parent 8156:745e0a783055
child 8834:b0093d3b2d04
line wrap: on
line diff
--- a/plugins/mod_disco.lua	Fri Jul 21 00:07:34 2017 +0200
+++ b/plugins/mod_disco.lua	Thu Jul 27 14:10:18 2017 +0200
@@ -148,7 +148,7 @@
 
 -- Handle caps stream feature
 module:hook("stream-features", function (event)
-	if event.origin.type == "c2s" or event.origin.type == "c2s_unauthed" then
+	if event.origin.type == "c2s" or event.origin.type == "c2s_unbound" then
 		event.features:add_child(get_server_caps_feature());
 	end
 end);