From 78bd151c486626f79ea7dcb9189591d121e822b6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 8 Mar 2012 00:46:24 +0000 Subject: Added basic online list --- jabber.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'jabber.c') diff --git a/jabber.c b/jabber.c index cd291858..a77117dc 100644 --- a/jabber.c +++ b/jabber.c @@ -25,6 +25,7 @@ #include "jabber.h" #include "log.h" +#include "contact_list.h" #include "windows.h" #define PING_INTERVAL 120000 // 2 minutes @@ -310,10 +311,12 @@ static int _jabber_presence_handler(xmpp_conn_t * const conn, else status_str = NULL; - if (type == NULL) // online + if (type == NULL) {// online win_contact_online(short_from, show_str, status_str); - else // offline + contact_list_add(short_from); + } else {// offline win_contact_offline(short_from, show_str, status_str); + } win_page_off(); -- cgit 1.4.1-2-gfad0