Only create contacts resource when online

This commit is contained in:
James Booth
2013-02-10 11:19:36 +00:00
parent 84a4ab9545
commit ec78914044
6 changed files with 98 additions and 118 deletions

View File

@@ -144,8 +144,7 @@ _iq_handle_roster_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
pending_out = TRUE;
}
gboolean added = contact_list_add(barejid, name, "offline", NULL, sub,
pending_out);
gboolean added = contact_list_add(barejid, name, sub, pending_out);
if (!added) {
log_warning("Attempt to add contact twice: %s", barejid);