comparison 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
comparison
equal deleted inserted replaced
1683:b09f82f61745 1684:95df4ea512c8
443 scr_LogPrint(LPRINT_NORMAL, "Cannot open state file [%s]", 443 scr_LogPrint(LPRINT_NORMAL, "Cannot open state file [%s]",
444 strerror(errno)); 444 strerror(errno));
445 goto hlog_save_state_return; 445 goto hlog_save_state_return;
446 } 446 }
447 447
448 if (!lconnection || !lm_connection_is_authenticated(lconnection)) { 448 if (!xmpp_is_online()) {
449 // We're not connected. Let's use the unread_jids hash. 449 // We're not connected. Let's use the unread_jids hash.
450 GList *unread_jid = unread_jid_get_list(); 450 GList *unread_jid = unread_jid_get_list();
451 unread_ptr = unread_jid; 451 unread_ptr = unread_jid;
452 for ( ; unread_jid ; unread_jid = g_list_next(unread_jid)) 452 for ( ; unread_jid ; unread_jid = g_list_next(unread_jid))
453 fprintf(fp, "%s\n", (char*)unread_jid->data); 453 fprintf(fp, "%s\n", (char*)unread_jid->data);