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.
1 parent 9e00455 commit 66fe497Copy full SHA for 66fe497
kirc.c
@@ -217,12 +217,13 @@ main(int argc, char **argv) {
217
218
while ((sl = read(conn, &s, 1))) {
219
if (sl > 0) b[o] = s;
220
- if ((o > 0 && b[o - 1] == '\r' && b[o] == '\n') || o == IRC_MSG_MAX) {
+
221
+ if ((o > 0 && b[o - 1] == '\r' && b[o] == '\n') || o == IRC_MSG_MAX) {
222
b[o + 1] = '\0';
- parser(b);
223
- o = 0;
+ parser(b);
224
+ o = 0;
225
}
- else if (sl > 0) o++;
226
+ else if (sl > 0) o++;
227
if (read(fd[0], u, IRC_MSG_MAX) > 0) {
228
for (i = 0; u[i] != '\n'; i++) continue;
229
if (u[0] != ':') raw("%-*.*s\r\n", i, i, u);
0 commit comments