We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6a4cd9 + b64d21a commit 2718692Copy full SHA for 2718692
kirc.c
@@ -170,12 +170,15 @@ raw_parser(char *string) {
170
} return;
171
} else if (!strncmp(command, "90", 2)) {
172
raw("CAP END\r\n");
173
- } else if (!strncmp(command, "QUIT", 4)) {
+ } else if (!strncmp(command, "QUIT", 4) || !strncmp(command, "PART", 4)) {
174
printf("%*s<-- \x1b[34;1m%s\x1b[0m\n", g - 3, "", nickname);
175
return;
176
} else if (!strncmp(command, "JOIN", 4)) {
177
printf("%*s--> \x1b[32;1m%s\x1b[0m\n", g - 3, "", nickname);
178
179
+ } else if (!strncmp(command, "NICK", 4)) {
180
+ printf("\x1b[35;1m%*s\x1b[0m --> \x1b[35;1m%s\x1b[0m\n", g - 4, nickname, message);
181
+ return;
182
} else if (!strncmp(command, "PRIVMSG", 7) && strcmp(channel, nick) == 0) {
183
printf("%*s\x1b[43;1m%-.*s\x1b[0m ", s, "", g, nickname);
184
} else if (!strncmp(command, "PRIVMSG", 7) && strstr(channel, chan_default) == NULL) {
0 commit comments