diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-09-05 17:33:51 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-09-05 17:33:51 +1000 |
commit | eccb499346db9d41271b7898cc8cfde7ee5c33dc (patch) | |
tree | 498e2e50b482049d4411b5c149177e6e741d0418 /src | |
parent | Fix potential case-clause crash (diff) |
Add some magic in order to shut up the dialyzer (because I do not want to replace the macro with a function)
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc/mod_muc_room.erl | 4 |
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; |