Add some magic in order to shut up the dialyzer (because I do not want to replace the macro with a function)

This commit is contained in:
Evgeniy Khramtsov 2011-09-05 17:33:51 +10:00
parent 0c1796ea40
commit eccb499346
1 changed files with 2 additions and 2 deletions

View File

@ -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;