comparison 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
comparison
equal deleted inserted replaced
1013:f1a9ca2348e5 1014:99c5278bf6b8
2369 } 2369 }
2370 2370
2371 static void do_disconnect(char *arg) 2371 static void do_disconnect(char *arg)
2372 { 2372 {
2373 jb_disconnect(); 2373 jb_disconnect();
2374 AutoConnection = false;
2374 } 2375 }
2375 2376
2376 static void do_help(char *arg) 2377 static void do_help(char *arg)
2377 { 2378 {
2378 help_process(arg); 2379 help_process(arg);