Added jid->hash lookup for capabilities
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user