mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 21:06:22 +00:00
Removed NULL check when checking roster for nick
This commit is contained in:
@@ -437,13 +437,9 @@ muc_nick_in_roster(const char * const room, const char * const nick)
|
|||||||
{
|
{
|
||||||
ChatRoom *chat_room = g_hash_table_lookup(rooms, room);
|
ChatRoom *chat_room = g_hash_table_lookup(rooms, room);
|
||||||
|
|
||||||
if (chat_room != NULL) {
|
if (chat_room) {
|
||||||
PContact contact = g_hash_table_lookup(chat_room->roster, nick);
|
PContact contact = g_hash_table_lookup(chat_room->roster, nick);
|
||||||
if (contact != NULL) {
|
return (contact != NULL);
|
||||||
return TRUE;
|
|
||||||
} else {
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user