Diff

mod_vjud/mod_vjud.lua @ 1318:5d49dc72b732

mod_vjud: Add an <identity> if loaded as a component (thanks gryffus)
author Kim Alvefur <zash@zash.se>
date Wed, 26 Feb 2014 11:00:30 +0100
parent 1296:b1a92a87309c
child 1319:400a7fdd2049
line wrap: on
line diff
--- a/mod_vjud/mod_vjud.lua	Sat Feb 22 13:26:22 2014 +0100
+++ b/mod_vjud/mod_vjud.lua	Wed Feb 26 11:00:30 2014 +0100
@@ -40,6 +40,9 @@
 		or module.host);
 
 module:depends"disco";
+if module:get_host_type() == "completed" then
+	module:add_identity("directory", "user", module:get_option_string("name", "User search"));
+end
 module:add_feature("jabber:iq:search");
 
 local vCard_mt = {