mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix binary conversion when removing user in mod_pubsub
This commit is contained in:
parent
bb4dae26da
commit
56f5a7846f
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user