changeset 2258:074c2f157dc9

plugin XEP-0054: fixed not transmitted arguments in getAvatar
author Goffi <goffi@goffi.org>
date Sat, 03 Jun 2017 22:24:53 +0200
parents 0ffa8ba0857c
children f51315500eb1
files src/plugins/plugin_exp_command_export.py src/plugins/plugin_xep_0054.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_exp_command_export.py	Mon May 22 23:58:26 2017 +0200
+++ b/src/plugins/plugin_exp_command_export.py	Sat Jun 03 22:24:53 2017 +0200
@@ -154,4 +154,3 @@
             process_prot = ExportCommandProtocol(self, client, _jid, options)
             self.spawned.setdefault((_jid, client.profile),set()).add(process_prot)
             reactor.spawnProcess(process_prot, command, args, usePTY = process_prot.boolOption('pty'))
-
--- a/src/plugins/plugin_xep_0054.py	Mon May 22 23:58:26 2017 +0200
+++ b/src/plugins/plugin_xep_0054.py	Sat Jun 03 22:24:53 2017 +0200
@@ -341,7 +341,7 @@
 
     def _getAvatar(self, entity, cache_only, hash_only, profile):
         client = self.host.getClient(profile)
-        d = self.getAvatar(client, jid.JID(entity))
+        d = self.getAvatar(client, jid.JID(entity), cache_only, hash_only)
         d.addErrback(lambda dummy: '')
 
         return d