mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-22 22:23:42 +02:00
Fix patterns in check_voice_request_fields/2 and check_voice_approvement_fields/2
This commit is contained in:
parent
f919349173
commit
845f5cabec
|
@ -3745,11 +3745,11 @@ is_voice_request(Els) ->
|
|||
|
||||
check_voice_request_fields(_, false) ->
|
||||
false;
|
||||
check_voice_request_fields({"FORM_TYPE", "http://jabber.org/protocol/muc#request"}, true) ->
|
||||
check_voice_request_fields({"FORM_TYPE", ["http://jabber.org/protocol/muc#request"]}, true) ->
|
||||
true;
|
||||
check_voice_request_fields({"FORM_TYPE", _}, _) ->
|
||||
false;
|
||||
check_voice_request_fields({"muc#role", "participant"}, true) ->
|
||||
check_voice_request_fields({"muc#role", ["participant"]}, true) ->
|
||||
true;
|
||||
check_voice_request_fields({"muc#role", _}, _) ->
|
||||
false;
|
||||
|
@ -3809,17 +3809,17 @@ is_voice_approvement(Els) ->
|
|||
|
||||
check_voice_approvement_fields(_, false) ->
|
||||
false;
|
||||
check_voice_approvement_fields({"FORM_TYPE", "http://jabber.org/protocol/muc#request"}, true) ->
|
||||
check_voice_approvement_fields({"FORM_TYPE", ["http://jabber.org/protocol/muc#request"]}, true) ->
|
||||
true;
|
||||
check_voice_approvement_fields({"FORM_TYPE", _}, _) ->
|
||||
false;
|
||||
check_voice_approvement_fields({"muc#role", "participant"}, true) ->
|
||||
check_voice_approvement_fields({"muc#role", ["participant"]}, true) ->
|
||||
true;
|
||||
check_voice_approvement_fields({"muc#role", _}, _) ->
|
||||
false;
|
||||
check_voice_approvement_fields({"muc#request_allow", "true"}, true) ->
|
||||
check_voice_approvement_fields({"muc#request_allow", ["true"]}, true) ->
|
||||
true;
|
||||
check_voice_approvement_fields({"muc#request_allow", "1"}, true) ->
|
||||
check_voice_approvement_fields({"muc#request_allow", ["1"]}, true) ->
|
||||
true;
|
||||
check_voice_approvement_fields({"muc#request_allow", _}, _) ->
|
||||
false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user