From acecf724f38b55029c291059ccf8ef8b885d80ec Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 3 Jun 2017 22:24:53 +0200 Subject: [PATCH] plugin XEP-0054: fixed not transmitted arguments in getAvatar --- src/plugins/plugin_exp_command_export.py | 1 - src/plugins/plugin_xep_0054.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/plugin_exp_command_export.py b/src/plugins/plugin_exp_command_export.py index cd542add..4b29c11e 100755 --- a/src/plugins/plugin_exp_command_export.py +++ b/src/plugins/plugin_exp_command_export.py @@ -154,4 +154,3 @@ class CommandExport(object): 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')) - diff --git a/src/plugins/plugin_xep_0054.py b/src/plugins/plugin_xep_0054.py index 91ef53b3..f672cc96 100755 --- a/src/plugins/plugin_xep_0054.py +++ b/src/plugins/plugin_xep_0054.py @@ -341,7 +341,7 @@ class XEP_0054(object): 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