mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-23 07:22:28 +00:00
Strip newlines that pipe from quest logs
This commit is contained in:
parent
647874d424
commit
b06d1b9050
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user