From 8bb9cb97fcafcc47c3ab4414615139e92980f674 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 26 Oct 2009 17:00:19 +0100 Subject: [PATCH] fixed bad namespace --- plugins/plugin_xep_0065.py | 1 + plugins/plugin_xep_0096.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/plugin_xep_0065.py b/plugins/plugin_xep_0065.py index 9b12f497..3b5cb078 100755 --- a/plugins/plugin_xep_0065.py +++ b/plugins/plugin_xep_0065.py @@ -453,6 +453,7 @@ class XEP_0065(): def sendFile(self, id, filepath, size): #lauching socks5 initiator + debug("Launching socks5 initiator") self.server_factory.protocol.mode = "initiator" self.server_factory.protocol.filepath = filepath self.server_factory.protocol.filesize = size diff --git a/plugins/plugin_xep_0096.py b/plugins/plugin_xep_0096.py index 5fc460cb..ef663617 100755 --- a/plugins/plugin_xep_0096.py +++ b/plugins/plugin_xep_0096.py @@ -145,7 +145,7 @@ class XEP_0096: si=offer.addElement('si','http://jabber.org/protocol/si') si["mime-type"]='text/plain' si["profile"]='http://jabber.org/protocol/si/profile/file-transfer' - file = si.addElement('file', 'http://jabber.org/protocol/si') + file = si.addElement('file', 'http://jabber.org/protocol/si/profile/file-transfer') file['name']=os.path.basename(filepath) file['size']=str(statinfo.st_size)