# HG changeset patch # User souliane # Date 1456236123 -3600 # Node ID ff603003d40a4043786976c576d1d7cc55a1a677 # Parent 6e547dd7f38c57615d26b73e4559380b37976db4 plugin misc_upload: fixes things that have been forgotten after a refactoring diff -r 6e547dd7f38c -r ff603003d40a src/plugins/plugin_misc_upload.py --- a/src/plugins/plugin_misc_upload.py Mon Feb 22 14:33:47 2016 +0100 +++ b/src/plugins/plugin_misc_upload.py Tue Feb 23 15:02:03 2016 +0100 @@ -67,7 +67,6 @@ return self.fileUpload(client, filepath, filename or None, upload_jid, options or None) - @defer.inlineCallbacks def fileUpload(self, client, filepath, filename, upload_jid, options): """Send a file using best available method @@ -83,7 +82,7 @@ log.warning(msg) return {'xmlui': xml_tools.note(u"Can't upload file", msg, C.XMLUI_DATA_LVL_WARNING).toXml()} - d = self.upload(filepath, filename, upload_jid, options, client.profile) + d = self.upload(client, filepath, filename, upload_jid, options) d.addCallback(uploadCb) d.addErrback(uploadEb) return d