Strip newlines that pipe from quest logs

This commit is contained in:
Akkadius 2015-01-17 01:52:12 -06:00
parent 647874d424
commit b06d1b9050

View File

@ -92,6 +92,9 @@ XS(XS_EQEmuIO_PRINT)
char *str = SvPV_nolen(ST(r));
char *cur = str;
/* Strip newlines from log message 'str' */
*std::remove(str, str + strlen(str), '\n') = '\0';
int i;
int pos = 0;
int len = 0;