From bdb3c7437a7260abc4dbddc490ff60b09d49b929 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sun, 12 Jun 2016 20:54:44 -0400 Subject: [PATCH] Add support for XEP-0373 OX PGP chat --- mod_otr.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod_otr.lua b/mod_otr.lua index b75dc70..471dd49 100644 --- a/mod_otr.lua +++ b/mod_otr.lua @@ -80,6 +80,11 @@ local function check_message_otr(event) return nil; end + -- check xep373 pgp (OX) https://xmpp.org/extensions/xep-0373.html + if event.stanza:get_child("openpgp", "urn:xmpp:openpgp:0") then + return nil; + end + -- no valid encryption found -- Warn the user that OTR will not work on MUC but let the message pass.