plugins/embed: use tab.jid instead of .name

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-09-15 12:26:50 +02:00
parent a399e59e46
commit 472e4371b1
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -30,7 +30,7 @@ class Plugin(BasePlugin):
def embed_image_url(self, args):
tab = self.api.current_tab()
message = self.core.xmpp.make_message(tab.name)
message = self.core.xmpp.make_message(tab.jid)
message['body'] = args
message['oob']['url'] = args
if isinstance(tab, tabs.MucTab):