Skip to content

Commit

Permalink
Fix recent commit to work with Erlang/OTP 20
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jan 16, 2025
1 parent aa61246 commit 6e4ac0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mod_muc_admin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e4ac0c

Please sign in to comment.