plugins/mod_disco.lua
changeset 7790 200f1f6306a7
parent 5776 bd0ff8ae98a8
child 7980 01d6298de991
equal deleted inserted replaced
7788:cdffbda59b03 7790:200f1f6306a7
   146 	return true;
   146 	return true;
   147 end);
   147 end);
   148 
   148 
   149 -- Handle caps stream feature
   149 -- Handle caps stream feature
   150 module:hook("stream-features", function (event)
   150 module:hook("stream-features", function (event)
   151 	if event.origin.type == "c2s" then
   151 	if event.origin.type == "c2s" or event.origin.type == "c2s_unauthed" then
   152 		event.features:add_child(get_server_caps_feature());
   152 		event.features:add_child(get_server_caps_feature());
   153 	end
   153 	end
   154 end);
   154 end);
   155 
   155 
   156 -- Handle disco requests to user accounts
   156 -- Handle disco requests to user accounts