comparison mcabber/src/jab_iq.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 bbf53cd43fbb
children 579299b1c9b2
comparison
equal deleted inserted replaced
1013:f1a9ca2348e5 1014:99c5278bf6b8
677 handle_iq_roster(x); 677 handle_iq_roster(x);
678 678
679 // Post-login stuff 679 // Post-login stuff
680 // Usually we request the roster only at connection time 680 // Usually we request the roster only at connection time
681 // so we should be there only once. (That's ugly, however) 681 // so we should be there only once. (That's ugly, however)
682 jb_setstatus(available, NULL, NULL); 682 jb_setprevstatus();
683 } 683 }
684 } 684 }
685 685
686 static void handle_iq_disco_info(jconn conn, char *from, const char *id, 686 static void handle_iq_disco_info(jconn conn, char *from, const char *id,
687 xmlnode xmldata) 687 xmlnode xmldata)