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:
parent
0c1796ea40
commit
eccb499346
@ -3340,9 +3340,9 @@ set_xoption([{"anonymous", [Val]} | Opts], Config) ->
|
|||||||
set_xoption([{"muc#roomconfig_whois", [Val]} | Opts], Config) ->
|
set_xoption([{"muc#roomconfig_whois", [Val]} | Opts], Config) ->
|
||||||
case Val of
|
case Val of
|
||||||
"moderators" ->
|
"moderators" ->
|
||||||
?SET_BOOL_XOPT(anonymous, "1");
|
?SET_BOOL_XOPT(anonymous, integer_to_list(1));
|
||||||
"anyone" ->
|
"anyone" ->
|
||||||
?SET_BOOL_XOPT(anonymous, "0");
|
?SET_BOOL_XOPT(anonymous, integer_to_list(0));
|
||||||
_ ->
|
_ ->
|
||||||
{error, ?ERR_BAD_REQUEST}
|
{error, ?ERR_BAD_REQUEST}
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user