From 34bc4da8d85ea9cd910a220ca42f3ef5094af60a Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 11 May 2010 00:51:24 +0200 Subject: [PATCH] Fix vcard removal --- src/mod_vcard.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_vcard.erl b/src/mod_vcard.erl index ec9c00f9b..379bbd20c 100644 --- a/src/mod_vcard.erl +++ b/src/mod_vcard.erl @@ -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}),