circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 9fecf482dbcd1d4022c23f6b92a43205c314a97c
parent f6392a2d8e20099b22054c53c5523a558d16769d
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sun, 19 Jun 2022 15:24:21 +0200

Remove an useless check.

Diffstat:
Mcirco.c | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/circo.c b/circo.c @@ -417,14 +417,6 @@ cmd_server(char *cmd, char *s) { strncpy(host, t, sizeof host); if(srv) quit(QUIT_MESSAGE); - if(!*host) { - bprintf(status, "/%s: no host specified.\n", cmd); - return; - } - if(!*port) { - bprintf(status, "/%s: no port specified.\n", cmd); - return; - } bprintf(status, "Connecting to %s:%s...\n", host, port); if((fd = dial(host, port)) < 0) { /* Note: dial() locks. */ bprintf(status, "Cannot connect to %s on port %s.\n", host, port);