diff options
-rw-r--r-- | sleekxmpp/plugins/xep_0077/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0077/register.py b/sleekxmpp/plugins/xep_0077/register.py index 53cc9ef5..1d04ab25 100644 --- a/sleekxmpp/plugins/xep_0077/register.py +++ b/sleekxmpp/plugins/xep_0077/register.py @@ -50,7 +50,7 @@ class XEP_0077(BasePlugin): # We have already logged in with an account return False - if self.create_account: + if self.create_account and self.xmpp.event_handled('register'): form = self.get_registration() self.xmpp.event('register', form, direct=True) return True |