Added jid->hash lookup for capabilities

This commit is contained in:
James Booth
2014-09-20 23:50:19 +01:00
parent 6e19476f6f
commit 2fb9989123
11 changed files with 172 additions and 153 deletions

View File

@@ -454,8 +454,7 @@ muc_nick_in_roster(const char * const room, const char * const nick)
*/
gboolean
muc_add_to_roster(const char * const room, const char * const nick,
const char * const show, const char * const status,
const char * const caps_str)
const char * const show, const char * const status)
{
ChatRoom *chat_room = g_hash_table_lookup(rooms, room);
gboolean updated = FALSE;
@@ -472,7 +471,7 @@ muc_add_to_roster(const char * const room, const char * const nick,
}
PContact contact = p_contact_new(nick, NULL, NULL, NULL, NULL, FALSE);
resource_presence_t resource_presence = resource_presence_from_string(show);
Resource *resource = resource_new(nick, resource_presence, status, 0, caps_str);
Resource *resource = resource_new(nick, resource_presence, status, 0);
p_contact_set_presence(contact, resource);
g_hash_table_replace(chat_room->roster, strdup(nick), contact);
}