From bc97de440aae05d188b25d5bbbb0173dfbcbed56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 1 Dec 2018 21:42:30 +0000 Subject: [PATCH] xep_0384: don't register the plugin twice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're already calling `register_plugin` in __init__.py Signed-off-by: Maxime “pep” Buquet --- plugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 4932ac6..27bf58b 100644 --- a/plugin.py +++ b/plugin.py @@ -17,7 +17,7 @@ import asyncio from slixmpp.plugins.xep_0384.stanza import OMEMO_BASE_NS from slixmpp.plugins.xep_0384.stanza import OMEMO_DEVICES_NS, OMEMO_BUNDLES_NS from slixmpp.plugins.xep_0384.stanza import Bundle, Devices, Device, Encrypted, Key, PreKeyPublic -from slixmpp.plugins.base import BasePlugin, register_plugin +from slixmpp.plugins.base import BasePlugin from slixmpp.exceptions import IqError from slixmpp.stanza import Message, Iq from slixmpp.jid import JID @@ -388,5 +388,3 @@ class XEP_0384(BasePlugin): always_trust=True, ) return self._generate_encrypted_payload(encrypted) - -register_plugin(XEP_0384)