fix for wide messages
This commit is contained in:
parent
19d3e81d0a
commit
bd342ec7b4
@ -816,7 +816,12 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
|
|||||||
for (z=0;z<z2;z++) {
|
for (z=0;z<z2;z++) {
|
||||||
if (body[z] == '\r' || chars == 79) {
|
if (body[z] == '\r' || chars == 79) {
|
||||||
chars = 0;
|
chars = 0;
|
||||||
|
if (body[z] == '\r') {
|
||||||
s_putstring(socket, "\r\n");
|
s_putstring(socket, "\r\n");
|
||||||
|
} else {
|
||||||
|
s_putchar(socket, body[z]);
|
||||||
|
s_putstring(socket, "\r\n");
|
||||||
|
}
|
||||||
lines++;
|
lines++;
|
||||||
if (lines >= 17) {
|
if (lines >= 17) {
|
||||||
s_putstring(socket, "\e[1;37mPress a key to continue...\e[0m");
|
s_putstring(socket, "\e[1;37mPress a key to continue...\e[0m");
|
||||||
|
Reference in New Issue
Block a user