diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-02-15 20:10:00 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-02-15 20:10:00 +0100 |
commit | 695a7ebebaf6a277420dcb42cd96d92d77df0379 (patch) | |
tree | 8c9da1e5bf988356ad110f42113949aab94a5866 /src/connection.py | |
parent | 0606c2b351ac87f110e1240d2f4ba1b94b275930 (diff) | |
parent | b89cd8fd8322bf8aa23130398a0a70defcba708d (diff) | |
download | poezio-695a7ebebaf6a277420dcb42cd96d92d77df0379.tar.gz poezio-695a7ebebaf6a277420dcb42cd96d92d77df0379.tar.bz2 poezio-695a7ebebaf6a277420dcb42cd96d92d77df0379.tar.xz poezio-695a7ebebaf6a277420dcb42cd96d92d77df0379.zip |
Merge branch 'master' of https://git.louiz.org/poezio
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/connection.py b/src/connection.py index 352a1d5b..8a7c1ea7 100644 --- a/src/connection.py +++ b/src/connection.py @@ -40,9 +40,9 @@ class Connection(sleekxmpp.ClientXMPP): self.anon = True jid = '%s/%s' % (config.get('server', 'anon.louiz.org'), resource) password = None - sleekxmpp.ClientXMPP.__init__(self, jid, password, ssl=True) + sleekxmpp.ClientXMPP.__init__(self, jid, password) self.core = None - self.auto_reconnect = False + self.auto_reconnect = True if config.get('auto_reconnect', 'false').lower() in ('true', '1') else False self.auto_authorize = None self.register_plugin('xep_0030') self.register_plugin('xep_0004') @@ -59,6 +59,7 @@ class Connection(sleekxmpp.ClientXMPP): self.register_plugin('xep_0092', pconfig=info) if config.get('send_time', 'true') == 'true': self.register_plugin('xep_0202') + self.register_plugin('xep_0224') def start(self): # TODO, try multiple servers |