diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-07-27 18:06:34 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-07-27 18:06:34 +0300 |
commit | 8275e95a1606670fc6334d9832de519c67550dcb (patch) | |
tree | e3783b740afe1416cd89e93f4528816dfd941b84 | |
parent | Fix type spec for set_from_to/3 (diff) |
Swap variables in their correct places
-rw-r--r-- | src/mod_mam.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl index b4ee17720..0aaf484c5 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -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. |