diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-10 23:46:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 23:46:08 +0300 |
commit | d1b5844d64015f6c224beceb68f9a6cfbf462034 (patch) | |
tree | 7103eee845b4d4b055297ac30d5e24e8d3b26984 | |
parent | Make sure configuration file path always represented as binary() (diff) | |
parent | Protect against bad muc#owner requests (diff) |
Merge pull request #2900 from aquarhead/protect-muc-owner
Protect against bad muc#owner requests
-rw-r--r-- | src/mod_muc_room.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index a082a7867..24bc414e2 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -3370,7 +3370,9 @@ process_iq_owner(From, #iq{type = get, lang = Lang, end; true -> {error, xmpp:err_bad_request()} - end. + end; +process_iq_owner(_, _, _) -> + {error, xmpp:err_bad_request()}. -spec is_allowed_log_change(muc_roomconfig:result(), state(), jid()) -> boolean(). is_allowed_log_change(Options, StateData, From) -> |