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); } }