mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 09:46:21 +00:00
Refactored muc_room_is_active to only take room, rather than full jid
This commit is contained in:
@@ -164,10 +164,10 @@ muc_leave_room(const char * const room)
|
||||
* Returns TRUE if the user is currently in the room
|
||||
*/
|
||||
gboolean
|
||||
muc_room_is_active(Jid *jid)
|
||||
muc_room_is_active(const char * const room)
|
||||
{
|
||||
if (rooms != NULL) {
|
||||
ChatRoom *chat_room = g_hash_table_lookup(rooms, jid->barejid);
|
||||
ChatRoom *chat_room = g_hash_table_lookup(rooms, room);
|
||||
|
||||
if (chat_room != NULL) {
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user