Allow /info and /msg in private room chat when nick has space in name

This commit is contained in:
James Booth
2013-01-15 00:02:23 +00:00
parent cbb3fd45e4
commit 62b89a4d8a
5 changed files with 58 additions and 27 deletions

View File

@@ -241,6 +241,19 @@ muc_remove_from_roster(const char * const room, const char * const nick)
}
}
PContact
muc_get_participant(const char * const room, const char * const nick)
{
ChatRoom *chat_room = g_hash_table_lookup(rooms, room);
if (chat_room != NULL) {
PContact participant = g_hash_table_lookup(chat_room->roster, nick);
return participant;
}
return NULL;
}
/*
* Return a list of PContacts representing the room members in the room's roster
* The list is owned by the room and must not be mofified or freed