]> granicus.if.org Git - ejabberd/commitdiff
Fix exception handling in is_voice_request/1
authorMaxim Ignatenko <gelraen.ua@gmail.com>
Sun, 24 Jul 2011 11:57:13 +0000 (14:57 +0300)
committerMaxim Ignatenko <gelraen.ua@gmail.com>
Mon, 26 Sep 2011 08:16:27 +0000 (11:16 +0300)
src/mod_muc/mod_muc_room.erl

index 2a6f7a13ee8249ee587e0912076a968578ab3b72..5f9edfd2f7e737ae464de45558687bf99d55da1a 100644 (file)
@@ -3647,7 +3647,7 @@ is_voice_request(Els) ->
                        end
                end
        catch
-       _ ->
+       error: _ ->
                false
        end.
 
@@ -3671,7 +3671,7 @@ check_voice_request_fields({xmlelement, "field", _, Els} = Elem, Acc) ->
                        end
                end
        catch
-       _ ->
+       error: _ ->
                false
        end.