Загрузить файлы в «C»
This commit is contained in:
parent
a50ebb3d26
commit
a2f5afe994
2
C/irc.h
2
C/irc.h
@ -8,7 +8,7 @@
|
|||||||
motd parsing
|
motd parsing
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IRC_LINUX
|
#ifdef IRC_LINUX
|
||||||
#define IRC_LINUX
|
#define IRC_LINUX
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
4
C/main.c
4
C/main.c
@ -35,10 +35,10 @@ void recvinfo(void) {
|
|||||||
else if (CHECK_NULL() && irc_status == IRCC_TOPIC)
|
else if (CHECK_NULL() && irc_status == IRCC_TOPIC)
|
||||||
printf("[T] %s\n", client.msg);
|
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);
|
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);
|
printf("[<] %s\n", client.nick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user