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),