From 56f5a7846fcdfcb61bd3ca5086e10472f5fc2fcc Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 10 May 2010 17:01:20 +0200 Subject: [PATCH] Fix binary conversion when removing user in mod_pubsub --- src/mod_pubsub/mod_pubsub.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 7518ecb2a..35f5344a6 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -781,7 +781,10 @@ unsubscribe_user(Entity, Owner) -> %% user remove hook handling function %% -remove_user(User, Server) -> +%% @spec(User::binary(), Server::binary()) -> any() +remove_user(UserB, ServerB) -> + User = binary_to_list(UserB), + Server = binary_to_list(ServerB), LUser = exmpp_stringprep:nodeprep(User), LServer = exmpp_stringprep:nameprep(Server), Entity = exmpp_jid:make(LUser, LServer),