Simplified online/offline notifications

This commit is contained in:
James Booth
2012-02-29 23:54:48 +00:00
parent 5aba98c6aa
commit dfa7c69da6
3 changed files with 118 additions and 106 deletions

View File

@@ -305,13 +305,10 @@ static int _jabber_presence_handler(xmpp_conn_t * const conn,
else
status_str = NULL;
if (type == NULL) { // online
cons_show_contact_online(short_from, show_str, status_str);
win_show_contact_online(short_from, show_str, status_str);
} else { // offline
cons_show_contact_offline(short_from, show_str, status_str);
win_show_contact_offline(short_from, show_str, status_str);
}
if (type == NULL) // online
win_contact_online(short_from, show_str, status_str);
else // offline
win_contact_offline(short_from, show_str, status_str);
return 1;
}