Changeset

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
parents 1317:35c57db6877f
children 1319:400a7fdd2049
files mod_vjud/mod_vjud.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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 = {