From aac0e782d0cef0a4ce0947e4733c348e36bfa1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Wed, 28 Feb 2024 12:24:50 +0100 Subject: [PATCH] Don't use ejabberd_config:get_myhosts() --- src/mod_muc_admin.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 2d945dfa4..d15138605 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -1574,7 +1574,7 @@ validate_host(Name, ArgName) -> error -> throw({error, <<"Invalid value of '",ArgName/binary,"'">>}); Name2 -> - case lists:member(Name2, ejabberd_config:get_myhosts()) of + case lists:member(Name2, ejabberd_option:hosts()) of false -> throw({error, <<"Unknown host passed in '",ArgName/binary,"'">>}); _ ->