Mercurial > libervia-backend
diff src/plugins/plugin_xep_0096.py @ 291:7c79d4a8c9e6
plugins: fixed bad import names
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 06 Feb 2011 23:49:27 +0100 |
parents | b1794cbb88e5 |
children | f964dcec1611 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0096.py Sun Feb 06 23:46:48 2011 +0100 +++ b/src/plugins/plugin_xep_0096.py Sun Feb 06 23:49:27 2011 +0100 @@ -43,10 +43,10 @@ PLUGIN_INFO = { "name": "XEP 0096 Plugin", -"import_name": "XEP_0096", +"import_name": "XEP-0096", "type": "XEP", "protocols": ["XEP-0096"], -"dependencies": ["XEP_0065"], +"dependencies": ["XEP-0065"], "main": "XEP_0096", "handler": "yes", "description": _("""Implementation of SI File Transfert""") @@ -85,7 +85,7 @@ """Called on confirmation answer""" if accepted: data['size'] = self._waiting_for_approval[id][2] - self.host.plugins["XEP_0065"].setData(data, id) + self.host.plugins["XEP-0065"].setData(data, id) self.approved(id) else: debug (_("Transfert [%s] refused"), id) @@ -161,7 +161,7 @@ offer=client.IQ(xmlstream,'set') debug ("Transfert ID: %s", offer["id"]) - self.host.plugins["XEP_0065"].sendFile(offer["id"], filepath, str(statinfo.st_size)) + self.host.plugins["XEP-0065"].sendFile(offer["id"], filepath, str(statinfo.st_size)) offer["from"]=current_jid.full() offer["to"]=jid.JID(to).full()