mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 12:00:15 +02:00
Fix binary conversion when removing user in mod_pubsub
This commit is contained in:
parent
bb4dae26da
commit
56f5a7846f
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue