Do not call hk_mystatuschange() twice when we're disconnected
authorMikael Berthe <mikael@lilotux.net>
Wed, 17 Feb 2010 19:07:50 +0100
changeset 1716 d30fb41725fe
parent 1715 1b6a04703fa0
child 1717 c12455fec611
Do not call hk_mystatuschange() twice when we're disconnected
mcabber/mcabber/xmpp.c
--- 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;
   }