mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed NULL check when checking roster for nick
This commit is contained in:
parent
7703f57584
commit
0afdbfaf03
@ -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);
|
||||
|
||||
if (chat_room != NULL) {
|
||||
if (chat_room) {
|
||||
PContact contact = g_hash_table_lookup(chat_room->roster, nick);
|
||||
if (contact != NULL) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
return (contact != NULL);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user