* comparing the result of a bitflag operation with 0 is always a good idea.
authorWilfried Göesgens <willi@citadel.org>
Sat, 6 Feb 2010 10:05:09 +0000 (10:05 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 6 Feb 2010 10:05:09 +0000 (10:05 +0000)
citadel/modules/newuser/serv_newuser.c

index 06a029a856927a7b292cc44c0d37bbf947729f0a..afa5f47aee40f0a28cdd19d9e8db8443dea61142 100644 (file)
@@ -89,7 +89,7 @@ void CopyNewUserGreetings(void) {
         * or if it's not private.
         */
        if (CtdlGetRoom(&CC->room, NEWUSERGREETINGS) != 0) return;
-       if (! CC->room.QRflags & QR_PRIVATE ) return;
+       if ((CC->room.QRflags & QR_PRIVATE) == 0) return;
 
        cdbfr = cdb_fetch(CDB_MSGLISTS, &CC->room.QRnumber, sizeof(long));