25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix binary conversion when removing user in mod_pubsub

This commit is contained in:
Badlop 2010-05-10 17:01:20 +02:00
parent bb4dae26da
commit 56f5a7846f

View File

@ -781,7 +781,10 @@ unsubscribe_user(Entity, Owner) ->
%% user remove hook handling function %% 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), LUser = exmpp_stringprep:nodeprep(User),
LServer = exmpp_stringprep:nameprep(Server), LServer = exmpp_stringprep:nameprep(Server),
Entity = exmpp_jid:make(LUser, LServer), Entity = exmpp_jid:make(LUser, LServer),