Swap variables in their correct places

This commit is contained in:
Evgeniy Khramtsov 2016-07-27 18:06:34 +03:00
parent 1097d31d63
commit 8275e95a16
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ set_room_option(_Acc, <<"muc#roomconfig_mam">> = Opt, Vals, Lang) ->
catch _:{case_clause, _} ->
Txt = <<"Value of '~s' should be boolean">>,
ErrTxt = iolist_to_binary(io_lib:format(Txt, [Opt])),
{error, xmpp:err_bad_request(Lang, ErrTxt)}
{error, xmpp:err_bad_request(ErrTxt, Lang)}
end;
set_room_option(Acc, _Opt, _Vals, _Lang) ->
Acc.