diff options
author | James Booth <boothj5@gmail.com> | 2014-09-25 20:59:59 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-25 20:59:59 +0100 |
commit | 0afdbfaf03d64522356b0a0abe178ae236057e7e (patch) | |
tree | e82cfa77906874636804f0b0aa9149e1caac239d | |
parent | 7703f575843e0506184c979d33f4922b35ae4e33 (diff) | |
download | profani-tty-0afdbfaf03d64522356b0a0abe178ae236057e7e.tar.gz |
Removed NULL check when checking roster for nick
-rw-r--r-- | src/muc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/muc.c b/src/muc.c index 3c937670..413ba84c 100644 --- a/src/muc.c +++ b/src/muc.c @@ -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; |