summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-01-11 12:47:24 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2020-01-11 12:53:29 +0100
commit7f73a664a3cbfd17d69f70609fe284d5bb9d44a2 (patch)
tree6cacaeb775746af221a3de3a7b44820aff8cbea1
parent30a7ac052a6cf6fec46f96e48c17c51246923a1d (diff)
downloadpoezio-7f73a664a3cbfd17d69f70609fe284d5bb9d44a2.tar.gz
poezio-7f73a664a3cbfd17d69f70609fe284d5bb9d44a2.tar.bz2
poezio-7f73a664a3cbfd17d69f70609fe284d5bb9d44a2.tar.xz
poezio-7f73a664a3cbfd17d69f70609fe284d5bb9d44a2.zip
plugin_e2ee: prevent empty JID from being passed to plugin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/plugin_e2ee.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py
index daf00818..95b216b1 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -428,7 +428,10 @@ class E2EEPlugin(BasePlugin):
break
# If we encrypt to all of these JIDs is up to the plugin, we
# just tell it who is in the room.
- jids.append(user.jid)
+ # XXX: user.jid shouldn't be empty. That's a MucTab/slixmpp
+ # bug.
+ if user.jid.bare:
+ jids.append(user.jid)
if not self._encryption_enabled(tab.jid):
raise NothingToEncrypt()