mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-11-21 16:35:04 -05:00
Merge pull request #34 from noonien-d/master
complete identity information for service discovery
This commit is contained in:
commit
02e970659f
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user