From c235e4f0d4447eaf4f23026d64f47795c24c233f Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 3 Nov 2011 14:49:59 +0100 Subject: [PATCH] refactor: same logic --- src/http_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_command.c b/src/http_command.c index 8a13590..1528276 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -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, -- 1.7.10.4