From 976f9e429e6d6eed8c95a3c89972923c31469bbc Mon Sep 17 00:00:00 2001 From: Ferdinand Stehle Date: Wed, 5 Aug 2015 18:38:07 +0200 Subject: [PATCH] add identity for service discovery --- plugins/upload.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/upload.py b/plugins/upload.py index fbe3e9b..1edac26 100644 --- a/plugins/upload.py +++ b/plugins/upload.py @@ -10,6 +10,7 @@ class upload(base_plugin): self.description = "upload files via http" self.xep = "0999" 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( Callback('Upload request', MatchXPath('{%s}iq/{eu:siacs:conversations:http:upload}request' % self.xmpp.default_ns),