diff mcabber/mcabber/histolog.c @ 1684:95df4ea512c8

Provide xmpp_is_online()
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 19 Jan 2010 19:16:38 +0200
parents d1e8fb14ce2d
children e6e89b1d7831
line wrap: on
line diff
--- a/mcabber/mcabber/histolog.c	Tue Jan 19 16:09:27 2010 +0200
+++ b/mcabber/mcabber/histolog.c	Tue Jan 19 19:16:38 2010 +0200
@@ -445,7 +445,7 @@
     goto hlog_save_state_return;
   }
 
-  if (!lconnection || !lm_connection_is_authenticated(lconnection)) {
+  if (!xmpp_is_online()) {
     // We're not connected.  Let's use the unread_jids hash.
     GList *unread_jid = unread_jid_get_list();
     unread_ptr = unread_jid;