From b2680a776bab523f17c529b9da86b38ae90eac07 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 17 Nov 2017 13:23:27 +0100 Subject: [PATCH] Prepare user and host arguments in get_user_rooms command (#2064) --- src/mod_muc_admin.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index ac11283ad..e41f62b59 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -321,13 +321,13 @@ muc_register_nick(Nick, FromBinary, ServerHost) -> muc_unregister_nick(FromBinary, ServerHost) -> muc_register_nick(<<"">>, FromBinary, ServerHost). -get_user_rooms(LUser, LServer) -> +get_user_rooms(User, Server) -> lists:flatmap( fun(ServerHost) -> case gen_mod:is_loaded(ServerHost, mod_muc) of true -> Rooms = mod_muc:get_online_rooms_by_user( - ServerHost, LUser, LServer), + ServerHost, jid:nodeprep(User), jid:nodeprep(Server)), [<> || {Name, Host} <- Rooms]; false ->