From a2f5afe9943f65d69b91db63a34d254879971700 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Wed, 23 Aug 2023 18:58:58 +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?C=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- C/irc.h | 2 +- C/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/C/irc.h b/C/irc.h index a451bb2..9041e7e 100644 --- a/C/irc.h +++ b/C/irc.h @@ -8,7 +8,7 @@ motd parsing */ -#ifndef IRC_LINUX +#ifdef IRC_LINUX #define IRC_LINUX #include diff --git a/C/main.c b/C/main.c index c083efb..5d06f5a 100644 --- a/C/main.c +++ b/C/main.c @@ -35,10 +35,10 @@ void recvinfo(void) { else if (CHECK_NULL() && irc_status == IRCC_TOPIC) printf("[T] %s\n", client.msg); - else if (irc_status == IRCC_JOIN) + else if (client.nick != NULL && irc_status == IRCC_JOIN) printf("[>] %s\n", client.nick); - else if (irc_status == IRCC_PART) + else if (client.nick != NULL && irc_status == IRCC_PART) printf("[<] %s\n", client.nick); } }