Why must you be so painful ansi? why?

This commit is contained in:
Andrew Pamment 2016-04-22 19:55:23 +10:00
parent 9583ea4b68
commit 1c5920c0b0

View File

@ -826,7 +826,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
s_putstring(socket, buffer); s_putstring(socket, buffer);
} else if (body[z] == 'A') { } else if (body[z] == 'A') {
j = atoi(&body[ansi + 2]); j = atoi(&body[ansi + 2]);
if (j == 0 && ansi + 3 == z) { if (j == 0 && ansi + 2 == z) {
j = 1; j = 1;
} }
for (i=0;i<j;i++) { for (i=0;i<j;i++) {
@ -839,7 +839,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
} }
} else if (body[z] == 'C') { } else if (body[z] == 'C') {
j = atoi(&body[ansi + 2]); j = atoi(&body[ansi + 2]);
if (j == 0 && ansi + 3 == z) { if (j == 0 && ansi + 2 == z) {
j = 1; j = 1;
} }
for (i=0;i<j;i++) { for (i=0;i<j;i++) {
@ -852,7 +852,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
} }
} else if (body[z] == 'B') { } else if (body[z] == 'B') {
j = atoi(&body[ansi + 2]); j = atoi(&body[ansi + 2]);
if (j == 0 && ansi + 3 == z) { if (j == 0 && ansi + 2 == z) {
j = 1; j = 1;
} }
for (i=0;i<j;i++) { for (i=0;i<j;i++) {
@ -865,7 +865,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
} }
} else if (body[z] == 'D') { } else if (body[z] == 'D') {
j = atoi(&body[ansi + 2]); j = atoi(&body[ansi + 2]);
if (j == 0 && ansi + 3 == z) { if (j == 0 && ansi + 2 == z) {
j = 1; j = 1;
} }
for (i=0;i<j;i++) { for (i=0;i<j;i++) {