diff options
Diffstat (limited to 'src/jabber.c')
-rw-r--r-- | src/jabber.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/jabber.c b/src/jabber.c index b057e637..16131fb0 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -490,19 +490,11 @@ _jabber_presence_handler(xmpp_conn_t * const conn, status_str = NULL; if (strcmp(short_jid, short_from) !=0) { - if (type == NULL) {// online - gboolean result = contact_list_add(short_from, show_str, status_str); - if (result) { - win_contact_online(short_from, show_str, status_str); - } - } else {// offline - gboolean result = contact_list_remove(short_from); - if (result) { - win_contact_offline(short_from, show_str, status_str); - } + if (type == NULL) { + prof_handle_contact_online(short_from, show_str, status_str); + } else { + prof_handle_contact_offline(short_from, show_str, status_str); } - - win_page_off(); } return 1; |