Compare commits

...

2 Commits

Author SHA1 Message Date
Lance Stout
3b2c865a58 Bump version to 1.1.2 2012-06-06 12:26:15 -07:00
Lance Stout
db0e683d01 Don't request registration forms unless the register event is handled.
Some servers end the stream if registration can not be completed
in-band, which means always requesting the form can prevent regular
login.
2012-06-06 12:23:40 -07:00
3 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ The latest source code for SleekXMPP may be found on `Github
``develop`` branch.
**Latest Release**
- `1.1.1 <http://github.com/fritzy/SleekXMPP/zipball/1.1.1>`_
- `1.1.2 <http://github.com/fritzy/SleekXMPP/zipball/1.1.2>`_
**Develop Releases**
- `Latest Develop Version <http://github.com/fritzy/SleekXMPP/zipball/develop>`_

View File

@@ -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

View File

@@ -9,5 +9,5 @@
# We don't want to have to import the entire library
# just to get the version info for setup.py
__version__ = '1.1.1'
__version_info__ = (1, 1, 1, '', 0)
__version__ = '1.1.2'
__version_info__ = (1, 1, 2, '', 0)