mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 14:56:22 +00:00
Allow /info and /msg in private room chat when nick has space in name
This commit is contained in:
13
src/muc.c
13
src/muc.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user