more tests

This commit is contained in:
Andrew Pamment 2016-04-22 15:17:33 +10:00
parent 020dc10f5f
commit a87775da6b

View File

@ -810,7 +810,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
chars = 0; chars = 0;
s_putstring(socket, "\r\n"); s_putstring(socket, "\r\n");
lines++; lines++;
if (lines == 17) { if (lines >= 17) {
s_putstring(socket, "Press a key to continue..."); s_putstring(socket, "Press a key to continue...");
s_getc(socket); s_getc(socket);
lines = 0; lines = 0;
@ -835,6 +835,10 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
} }
if (body[z] == 'C') { if (body[z] == 'C') {
chars += atoi(&body[ansi + 2]); chars += atoi(&body[ansi + 2]);
if (chars > 79) {
lines++;
chars -= 79;
}
} }
if (body[z] == 'B') { if (body[z] == 'B') {
lines += atoi(&body[ansi + 2]); lines += atoi(&body[ansi + 2]);