summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-01-27 18:27:31 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-27 18:27:31 +0100
commitdde7875d2cb62500144b5322e7eac216de0b81c6 (patch)
tree950d1e027a7c7915854feca345d0af1ddb837311 /src/connection.py
parente8b0c302fe59b9f1f9ea0b7c6190fb62a62ab010 (diff)
parentd77e79cd6bc98aa588ac7112dada67ad0df74e68 (diff)
downloadpoezio-dde7875d2cb62500144b5322e7eac216de0b81c6.tar.gz
poezio-dde7875d2cb62500144b5322e7eac216de0b81c6.tar.bz2
poezio-dde7875d2cb62500144b5322e7eac216de0b81c6.tar.xz
poezio-dde7875d2cb62500144b5322e7eac216de0b81c6.zip
Merge branch 'master' of https://git.louiz.org/poezio
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index 352a1d5b..1079b5a6 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -42,7 +42,7 @@ class Connection(sleekxmpp.ClientXMPP):
password = None
sleekxmpp.ClientXMPP.__init__(self, jid, password, ssl=True)
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')