From 0800c666eb69fe6934dad08d8bd2d3996cb5cef1 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 4 Dec 2014 15:30:18 +0100 Subject: Set auto_reconnect to True by default --- src/config.py | 2 +- src/core/handlers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3