diff plugins/plugin_xep_0096.py @ 22:bb72c29f3432

added action cb mechanism for buttons. Tested with a temporary new user registration button.
author Goffi <goffi@goffi.org>
date Tue, 01 Dec 2009 04:56:08 +0100
parents f2a745ca0fbc
children 2e3411a6baad
line wrap: on
line diff
--- a/plugins/plugin_xep_0096.py	Sun Nov 08 01:49:08 2009 +0100
+++ b/plugins/plugin_xep_0096.py	Tue Dec 01 04:56:08 2009 +0100
@@ -143,8 +143,8 @@
             query=offer.addElement('query', 'http://jabber.org/protocol/bytestreams')
             query['mode']='tcp'
             streamhost=query.addElement('streamhost')
-            streamhost['host']=self.host.memory.getParamV("IP", "File Transfert")
-            streamhost['port']=self.host.memory.getParamV("Port", "File Transfert")
+            streamhost['host']=self.host.memory.getParamA("IP", "File Transfert")
+            streamhost['port']=self.host.memory.getParamA("Port", "File Transfert")
             streamhost['jid']=self.host.me.full()
             offer.send()