25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

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

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;