* roomchat_rwho(), roomchat_poll(): gcc likes bit operations in logical operations...
authorWilfried Göesgens <willi@citadel.org>
Sun, 16 May 2010 20:49:51 +0000 (20:49 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 16 May 2010 20:49:51 +0000 (20:49 +0000)
citadel/modules/roomchat/serv_roomchat.c

index b3348078c991912b0db6bac756f5c7ee33886be7..63feceb51e82246158ab433acddf087e3a39ed2c 100644 (file)
@@ -174,7 +174,7 @@ void roomchat_poll(char *argbuf) {
 
        newer_than = extract_int(argbuf, 1);
 
-       if (!CC->cs_flags & CS_CHAT) {
+       if ((CC->cs_flags & CS_CHAT) == 0) {
                cprintf("%d Session is not in chat mode.\n", ERROR);
                return;
        }
@@ -206,7 +206,7 @@ void roomchat_rwho(char *argbuf) {
        struct CitContext *nptr;
        int nContexts, i;
 
-       if (!CC->cs_flags & CS_CHAT) {
+       if ((CC->cs_flags & CS_CHAT) == 0) {
                cprintf("%d Session is not in chat mode.\n", ERROR);
                return;
        }