Fix vcard removal

This commit is contained in:
Badlop 2010-05-11 00:51:24 +02:00
parent 3727e2426d
commit 34bc4da8d8
1 changed files with 2 additions and 2 deletions

View File

@ -657,8 +657,8 @@ reindex_vcards() ->
remove_user(User, Server) when is_binary(User), is_binary(Server) ->
LUser = exmpp_stringprep:nodeprep(User),
LServer = exmpp_stringprep:nameprep(Server),
LUser = binary_to_list(exmpp_stringprep:nodeprep(User)),
LServer = binary_to_list(exmpp_stringprep:nameprep(Server)),
US = {LUser, LServer},
F = fun() ->
mnesia:delete({vcard, US}),