1
0
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:
James Booth 2014-09-25 20:59:59 +01:00
parent 7703f57584
commit 0afdbfaf03

View File

@ -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;