plugins: fixed bad import names

This commit is contained in:
Goffi 2011-02-06 23:49:27 +01:00
commit 27274bfda0

View file

@ -30,10 +30,10 @@ from wokkel import disco, iwokkel
PLUGIN_INFO = {
"name": "Gateways Plugin",
"import_name": "XEP_0100",
"import_name": "XEP-0100",
"type": "XEP",
"protocols": ["XEP-0100"],
"dependencies": ["XEP_0077"],
"dependencies": ["XEP-0077"],
"main": "XEP_0100",
"description": _("""Implementation of Gateways protocol""")
}
@ -110,8 +110,8 @@ class XEP_0100():
profile = self.host.memory.getProfileName(profile_key)
assert(profile) #FIXME: return an error here
if action == 'SUBMIT':
self.host.plugins["XEP_0077"].addTrigger(target, self.registrationSuccessful, profile)
return self.host.plugins["XEP_0077"].in_band_submit(action, target, fields, profile)
self.host.plugins["XEP-0077"].addTrigger(target, self.registrationSuccessful, profile)
return self.host.plugins["XEP-0077"].in_band_submit(action, target, fields, profile)
def findGateways(self, target, profile_key='@DEFAULT@'):
"""Find gateways in the target JID, using discovery protocol