mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Fix get_vcard and set_vcard when using option module_resource (issue #21)
This commit is contained in:
parent
14a3662ca4
commit
f682dfe3a6
@ -968,7 +968,7 @@ set_vcard(User, Host, Name, Subname, SomeContent) ->
|
|||||||
get_module_resource(Server) ->
|
get_module_resource(Server) ->
|
||||||
case gen_mod:get_module_opt(Server, ?MODULE, module_resource, fun(A) -> A end, none) of
|
case gen_mod:get_module_opt(Server, ?MODULE, module_resource, fun(A) -> A end, none) of
|
||||||
none -> list_to_binary(atom_to_list(?MODULE));
|
none -> list_to_binary(atom_to_list(?MODULE));
|
||||||
R when is_list(R) -> R
|
R when is_binary(R) -> R
|
||||||
end.
|
end.
|
||||||
|
|
||||||
get_vcard_content(User, Server, Data) ->
|
get_vcard_content(User, Server, Data) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user