diff options
Diffstat (limited to 'plugins/embed.py')
-rw-r--r-- | plugins/embed.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/embed.py b/plugins/embed.py index 3ce2a9d3..4a68f035 100644 --- a/plugins/embed.py +++ b/plugins/embed.py @@ -29,8 +29,8 @@ class Plugin(BasePlugin): help='Embed an image url into the contact\'s client', usage='<image_url>') - def embed_image_url(self, url): - tab = self.api.current_tab() + def embed_image_url(self, url, tab=None): + tab = tab or self.api.current_tab() message = self.core.xmpp.make_message(tab.jid) message['body'] = url message['oob']['url'] = url |