From eccb499346db9d41271b7898cc8cfde7ee5c33dc Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Mon, 5 Sep 2011 17:33:51 +1000 Subject: [PATCH] Add some magic in order to shut up the dialyzer (because I do not want to replace the macro with a function) --- src/mod_muc/mod_muc_room.erl | 4 ++-- 1 file 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;