diff mcabber/src/commands.c @ 1014:99c5278bf6b8

Keep the status and status messages when we're disconnected Improve the automatic reconnection after a network failure. - AutoConnection is only set to false when the user disconnects explicitly (i.e. in do_disconnect()). - AutoConnection is set to TRUE after the 1st successful connection. - In jb_setstatus(), update the status message and the "wanted status" even in offline mode. It helps with auto-away.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 12 Nov 2006 22:25:14 +0100
parents 7f216b904315
children 579299b1c9b2
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Nov 12 15:55:04 2006 +0100
+++ b/mcabber/src/commands.c	Sun Nov 12 22:25:14 2006 +0100
@@ -2371,6 +2371,7 @@
 static void do_disconnect(char *arg)
 {
   jb_disconnect();
+  AutoConnection = false;
 }
 
 static void do_help(char *arg)