summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-12-04 15:30:18 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-12-04 15:30:18 +0100
commit0800c666eb69fe6934dad08d8bd2d3996cb5cef1 (patch)
treeaac3809bfe3648e80e09c92e064bfbdf0e17f0c0 /src
parenta208dc87ee918c13fb168ed20a2fb01412344df1 (diff)
downloadpoezio-0800c666eb69fe6934dad08d8bd2d3996cb5cef1.tar.gz
poezio-0800c666eb69fe6934dad08d8bd2d3996cb5cef1.tar.bz2
poezio-0800c666eb69fe6934dad08d8bd2d3996cb5cef1.tar.xz
poezio-0800c666eb69fe6934dad08d8bd2d3996cb5cef1.zip
Set auto_reconnect to True by default
Diffstat (limited to 'src')
-rw-r--r--src/config.py2
-rw-r--r--src/core/handlers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config.py b/src/config.py
index 1f0771ca..563c16be 100644
--- a/src/config.py
+++ b/src/config.py
@@ -28,7 +28,7 @@ DEFAULT_CONFIG = {
'add_space_after_completion': True,
'after_completion': ',',
'alternative_nickname': '',
- 'auto_reconnect': False,
+ 'auto_reconnect': True,
'autorejoin_delay': '5',
'autorejoin': False,
'beep_on': 'highlight private invite',
diff --git a/src/core/handlers.py b/src/core/handlers.py
index d8f057f8..dc6238d5 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -855,7 +855,7 @@ def on_disconnected(self, event):
for tab in self.get_tabs(tabs.MucTab):
tab.disconnect()
self.information(_("Disconnected from server."), _('Error'))
- if not self.legitimate_disconnect and config.get('auto_reconnect', False):
+ if not self.legitimate_disconnect and config.get('auto_reconnect', True):
self.information(_("Auto-reconnecting."), _('Info'))
self.xmpp.connect()