Added p_contact_add_resource

This commit is contained in:
James Booth
2013-02-10 18:16:06 +00:00
parent 1a6490a5b7
commit 8c9f916246
5 changed files with 22 additions and 15 deletions

View File

@@ -70,8 +70,7 @@ contact_list_add(const char * const barejid, const char * const name,
PContact contact = g_hash_table_lookup(contacts, barejid);
if (contact == NULL) {
contact = p_contact_new(barejid, name, "offline", NULL, subscription,
pending_out, NULL);
contact = p_contact_new(barejid, name, subscription, pending_out);
g_hash_table_insert(contacts, strdup(barejid), contact);
autocomplete_add(ac, strdup(barejid));
added = TRUE;