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:
parent
0c1796ea40
commit
eccb499346
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue