comparison mcabber/mcabber/xmpp.c @ 1716:d30fb41725fe

Do not call hk_mystatuschange() twice when we're disconnected
author Mikael Berthe <mikael@lilotux.net>
date Wed, 17 Feb 2010 19:07:50 +0100
parents 1b6a04703fa0
children c12455fec611
comparison
equal deleted inserted replaced
1715:1b6a04703fa0 1716:d30fb41725fe
1888 // We'll have to update the roster if we switch to/from offline because 1888 // We'll have to update the roster if we switch to/from offline because
1889 // we don't know the presences of buddies when offline... 1889 // we don't know the presences of buddies when offline...
1890 if (mystatus == offline || st == offline) 1890 if (mystatus == offline || st == offline)
1891 update_roster = TRUE; 1891 update_roster = TRUE;
1892 1892
1893 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); 1893 if (isonline || mystatus || st)
1894 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : ""));
1894 mystatus = st; 1895 mystatus = st;
1895 } 1896 }
1896 1897
1897 if (st) 1898 if (st)
1898 mywantedstatus = st; 1899 mywantedstatus = st;