]> granicus.if.org Git - ejabberd/commitdiff
Fix patterns in check_voice_request_fields/2 and check_voice_approvement_fields/2
authorMaxim Ignatenko <gelraen.ua@gmail.com>
Tue, 20 Sep 2011 17:57:50 +0000 (20:57 +0300)
committerMaxim Ignatenko <gelraen.ua@gmail.com>
Mon, 26 Sep 2011 08:16:29 +0000 (11:16 +0300)
src/mod_muc/mod_muc_room.erl

index c191c4122f553a4f8328218d87c4b4807b891c0c..5986e2fb4455f940f80591ad53f0677d448dca9c 100644 (file)
@@ -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;