mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Fix search for User in vjud
See https://stackoverflow.com/questions/51478247/ejabberd-search-module-failed-to-handle-the-query
This commit is contained in:
parent
6dc452e7f5
commit
1be2112634
@ -192,7 +192,7 @@ filter_fields([{SVar, [Val]} | Ds], Match, LServer)
|
|||||||
LVal = mod_vcard:string2lower(Val),
|
LVal = mod_vcard:string2lower(Val),
|
||||||
NewMatch = case SVar of
|
NewMatch = case SVar of
|
||||||
<<"user">> ->
|
<<"user">> ->
|
||||||
case gen_mod:get_module_opt(LServer, ?MODULE,
|
case gen_mod:get_module_opt(LServer, mod_vcard,
|
||||||
search_all_hosts) of
|
search_all_hosts) of
|
||||||
true -> Match#vcard_search{luser = make_val(LVal)};
|
true -> Match#vcard_search{luser = make_val(LVal)};
|
||||||
false ->
|
false ->
|
||||||
|
Loading…
Reference in New Issue
Block a user