summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-15 21:50:01 +0100
committermathieui <mathieui@mathieui.net>2021-02-24 20:50:05 +0100
commit6d241be78971af2eb800f98fe2283f42344a7cb6 (patch)
treea03da1b14132f6979d67bc09e3c3aee06e69d501
parentbabd98dac7ffca467d0f7303cfd8bb72cca11f1b (diff)
downloadslixmpp-6d241be78971af2eb800f98fe2283f42344a7cb6.tar.gz
slixmpp-6d241be78971af2eb800f98fe2283f42344a7cb6.tar.bz2
slixmpp-6d241be78971af2eb800f98fe2283f42344a7cb6.tar.xz
slixmpp-6d241be78971af2eb800f98fe2283f42344a7cb6.zip
XEP-0077: Fix "register" event on stream features.
-rw-r--r--slixmpp/plugins/xep_0077/register.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0077/register.py b/slixmpp/plugins/xep_0077/register.py
index 953fee70..1850b2c9 100644
--- a/slixmpp/plugins/xep_0077/register.py
+++ b/slixmpp/plugins/xep_0077/register.py
@@ -203,14 +203,14 @@ class XEP_0077(BasePlugin):
self.xmpp.del_filter('in', self._force_stream_feature)
return stanza
- def _handle_register_feature(self, features):
+ async def _handle_register_feature(self, features):
if 'mechanisms' in self.xmpp.features:
# We have already logged in with an account
return False
if self.create_account and self.xmpp.event_handled('register'):
- form = self.get_registration()
- self.xmpp.event('register', form)
+ form = await self.get_registration()
+ await self.xmpp.event_async('register', form)
return True
return False