From 6e4ac0c501ca4b5d0f7918980d5910dccb96252d Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 15 Jan 2025 20:49:53 +0100 Subject: [PATCH] Fix recent commit to work with Erlang/OTP 20 --- src/mod_muc_admin.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 36d37b89984..a260d43b286 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -1737,16 +1737,16 @@ format_room_option(OptionString, ValueString) -> allow_private_messages_from_visitors when (ValueString == <<"anyone">>) or (ValueString == <<"moderators">>) or - (ValueString == <<"nobody">>) -> binary_to_existing_atom(ValueString); + (ValueString == <<"nobody">>) -> binary_to_existing_atom(ValueString, utf8); allowpm when (ValueString == <<"anyone">>) or (ValueString == <<"participants">>) or (ValueString == <<"moderators">>) or - (ValueString == <<"none">>) -> binary_to_existing_atom(ValueString); + (ValueString == <<"none">>) -> binary_to_existing_atom(ValueString, utf8); presence_broadcast when (ValueString == <<"participant">>) or (ValueString == <<"moderator">>) or - (ValueString == <<"visitor">>) -> binary_to_existing_atom(ValueString); + (ValueString == <<"visitor">>) -> binary_to_existing_atom(ValueString, utf8); _ when ValueString == <<"true">> -> true; _ when ValueString == <<"false">> -> false; _ -> throw_error(Option, ValueString)