Mercurial > hg
changeset 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 |
files | mcabber/mcabber/xmpp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c Wed Feb 17 18:44:39 2010 +0100 +++ b/mcabber/mcabber/xmpp.c Wed Feb 17 19:07:50 2010 +0100 @@ -1890,7 +1890,8 @@ if (mystatus == offline || st == offline) update_roster = TRUE; - hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); + if (isonline || mystatus || st) + hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); mystatus = st; }