diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-01-11 12:47:24 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-01-11 12:53:29 +0100 |
commit | 7f73a664a3cbfd17d69f70609fe284d5bb9d44a2 (patch) | |
tree | 6cacaeb775746af221a3de3a7b44820aff8cbea1 | |
parent | 30a7ac052a6cf6fec46f96e48c17c51246923a1d (diff) | |
download | poezio-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.py | 5 |
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() |