plugins: fixed bad import names
This commit is contained in:
parent
2fb4a452bb
commit
27274bfda0
1 changed files with 16 additions and 16 deletions
|
|
@ -43,10 +43,10 @@ SI_REQUEST = IQ_SET + '/si[@xmlns="' + NS_SI + '"]'
|
|||
|
||||
PLUGIN_INFO = {
|
||||
"name": "XEP 0096 Plugin",
|
||||
"import_name": "XEP_0096",
|
||||
"import_name": "XEP-0096",
|
||||
"type": "XEP",
|
||||
"protocols": ["XEP-0096"],
|
||||
"dependencies": ["XEP_0065"],
|
||||
"dependencies": ["XEP-0065"],
|
||||
"main": "XEP_0096",
|
||||
"handler": "yes",
|
||||
"description": _("""Implementation of SI File Transfert""")
|
||||
|
|
@ -85,7 +85,7 @@ class XEP_0096():
|
|||
"""Called on confirmation answer"""
|
||||
if accepted:
|
||||
data['size'] = self._waiting_for_approval[id][2]
|
||||
self.host.plugins["XEP_0065"].setData(data, id)
|
||||
self.host.plugins["XEP-0065"].setData(data, id)
|
||||
self.approved(id)
|
||||
else:
|
||||
debug (_("Transfert [%s] refused"), id)
|
||||
|
|
@ -161,7 +161,7 @@ class XEP_0096():
|
|||
offer=client.IQ(xmlstream,'set')
|
||||
debug ("Transfert ID: %s", offer["id"])
|
||||
|
||||
self.host.plugins["XEP_0065"].sendFile(offer["id"], filepath, str(statinfo.st_size))
|
||||
self.host.plugins["XEP-0065"].sendFile(offer["id"], filepath, str(statinfo.st_size))
|
||||
|
||||
offer["from"]=current_jid.full()
|
||||
offer["to"]=jid.JID(to).full()
|
||||
|
|
|
|||
Loading…
Reference in a new issue