Merge pull request #34 from noonien-d/master

complete identity information for service discovery
This commit is contained in:
Daniel Gultsch 2015-08-05 18:46:48 +02:00
commit 02e970659f

View File

@ -10,6 +10,7 @@ class upload(base_plugin):
self.description = "upload files via http" self.description = "upload files via http"
self.xep = "0999" self.xep = "0999"
self.xmpp['xep_0030'].add_feature("eu:siacs:conversations:http:upload") self.xmpp['xep_0030'].add_feature("eu:siacs:conversations:http:upload")
self.xmpp['xep_0030'].add_identity(category='store', itype='file', name='HTTP File Upload')
self.xmpp.register_handler( self.xmpp.register_handler(
Callback('Upload request', Callback('Upload request',
MatchXPath('{%s}iq/{eu:siacs:conversations:http:upload}request' % self.xmpp.default_ns), MatchXPath('{%s}iq/{eu:siacs:conversations:http:upload}request' % self.xmpp.default_ns),