ii

git clone https://orangeshoelaces.net/git/ii.git

91e673efade0f57c459069fd7a08e66fc952fa8b

Author: Anselm R. Garbe on 01/23/2006

Committer: Anselm R. Garbe on 01/23/2006

fix

Stats

ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index d25811e..69ecb2d 100644
--- a/ii.c
+++ b/ii.c
@@ -124,7 +124,7 @@ static void add_channel(char *name)
 		perror("ii: cannot allocate memory");
 		exit(EXIT_FAILURE);
 	}
-	if(channels)
+	if(!channels)
 		channels = c;
 	else
 		c->next = channels;