From f0dbe484425a7bfc2f86a77199c627277ae8bc57 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Fri, 6 Oct 2023 16:04:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cfg.h | 4 ++-- main.c | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/cfg.h b/cfg.h index b8a05e2..59c408e 100644 --- a/cfg.h +++ b/cfg.h @@ -10,7 +10,7 @@ char *channels[] = {"#channel"}; #define FORMAT_TXT "<%s> %s\n" #define FORMAT_HTML "[%s] %s
\n" #define FORMAT_AWK "%s %s\n" -#define FORMAT FORMAT_AWK +#define FORMAT FORMAT_TXT //File ext -#define EXT ".awk" +#define EXT ".txt" diff --git a/main.c b/main.c index ecf620e..b4451a9 100644 --- a/main.c +++ b/main.c @@ -63,16 +63,11 @@ int main(void) { die("Cant chdir"); //512 - size of raw buffer (max irc) - IRCC_init(&client, IRCC_MSG_MAX); + IRCC_init(&client); int status = IRCC_connect(&client, HOST, PORT); if (status == IRCC_ERROR) die("Conn refused"); - //Socket timeout - struct timeval tv = {IRCC_PING_TIMEOUT, IRCC_PING_TIMEOUT}; - if (setsockopt(client.socket, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) - die("setsockopt"); - //Register IRCC_register(&client, NICK);