refactor: same logic
authorDennis Schafroth <dennis@indexdata.com>
Thu, 3 Nov 2011 13:49:59 +0000 (14:49 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 3 Nov 2011 13:49:59 +0000 (14:49 +0100)
src/http_command.c

index 8a13590..1528276 100644 (file)
@@ -668,7 +668,7 @@ static void cmd_bytarget(struct http_channel *c)
     if (!s)
         return;
 
-    if (block && strcmp("1",block) == 0)
+    if (block && !strcmp("1",block))
     {
         // if there is already a watch/block. we do not block this one
         if (session_set_watch(s->psession, SESSION_WATCH_BYTARGET,