]> granicus.if.org Git - ejabberd/commitdiff
Fix search for User in vjud
authorBadlop <badlop@process-one.net>
Tue, 24 Jul 2018 18:01:22 +0000 (20:01 +0200)
committerBadlop <badlop@process-one.net>
Tue, 24 Jul 2018 18:01:22 +0000 (20:01 +0200)
See https://stackoverflow.com/questions/51478247/ejabberd-search-module-failed-to-handle-the-query

src/mod_vcard_mnesia.erl

index f7e2872aa1079488a20a9cfafa453aaf898d9891..af361dbb34b8aee5c27ca2df561ccc8f16e99dfb 100644 (file)
@@ -192,7 +192,7 @@ filter_fields([{SVar, [Val]} | Ds], Match, LServer)
     LVal = mod_vcard:string2lower(Val),
     NewMatch = case SVar of
                   <<"user">> ->
-                      case gen_mod:get_module_opt(LServer, ?MODULE,
+                      case gen_mod:get_module_opt(LServer, mod_vcard,
                                                   search_all_hosts) of
                           true -> Match#vcard_search{luser = make_val(LVal)};
                           false ->