Fix get_vcard and set_vcard when using option module_resource (issue #21)

This commit is contained in:
Badlop 2014-03-25 18:17:14 +01:00
parent c8dfced84c
commit a8fba1ca30
1 changed files with 1 additions and 1 deletions

View File

@ -968,7 +968,7 @@ set_vcard(User, Host, Name, Subname, SomeContent) ->
get_module_resource(Server) ->
case gen_mod:get_module_opt(Server, ?MODULE, module_resource, fun(A) -> A end, none) of
none -> list_to_binary(atom_to_list(?MODULE));
R when is_list(R) -> R
R when is_binary(R) -> R
end.
get_vcard_content(User, Server, Data) ->