aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_muc/mod_muc_room.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl
index 9b7255dd5..d53ff3d73 100644
--- a/src/mod_muc/mod_muc_room.erl
+++ b/src/mod_muc/mod_muc_room.erl
@@ -3340,9 +3340,9 @@ set_xoption([{"anonymous", [Val]} | Opts], Config) ->
set_xoption([{"muc#roomconfig_whois", [Val]} | Opts], Config) ->
case Val of
"moderators" ->
- ?SET_BOOL_XOPT(anonymous, "1");
+ ?SET_BOOL_XOPT(anonymous, integer_to_list(1));
"anyone" ->
- ?SET_BOOL_XOPT(anonymous, "0");
+ ?SET_BOOL_XOPT(anonymous, integer_to_list(0));
_ ->
{error, ?ERR_BAD_REQUEST}
end;