From b06d1b9050bb471707375f8175a39fd797d6a8ea Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 17 Jan 2015 01:52:12 -0600 Subject: [PATCH] Strip newlines that pipe from quest logs --- zone/embxs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zone/embxs.cpp b/zone/embxs.cpp index e080d6a13..f8a948578 100644 --- a/zone/embxs.cpp +++ b/zone/embxs.cpp @@ -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;