add identity for service discovery

This commit is contained in:
Ferdinand Stehle 2015-08-05 18:38:07 +02:00
parent aeda6ac875
commit 976f9e429e

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),