about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-09-25 20:59:59 +0100
committerJames Booth <boothj5@gmail.com>2014-09-25 20:59:59 +0100
commit0afdbfaf03d64522356b0a0abe178ae236057e7e (patch)
treee82cfa77906874636804f0b0aa9149e1caac239d
parent7703f575843e0506184c979d33f4922b35ae4e33 (diff)
downloadprofani-tty-0afdbfaf03d64522356b0a0abe178ae236057e7e.tar.gz
Removed NULL check when checking roster for nick
-rw-r--r--src/muc.c8
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;