only remove newlines

This commit is contained in:
nullifiedcat 2017-07-29 19:48:27 +03:00
parent 3fccca1012
commit e5a248b966

View File

@ -63,10 +63,10 @@ void LogMessage(int eid, std::string message) {
return; return;
std::string name(info.name); std::string name(info.name);
for (auto& x : name) { for (auto& x : name) {
if (x < 32) x = '*'; if (x == '\n' || x == '\r') x = '*';
} }
for (auto& x : message) { for (auto& x : message) {
if (x < 32) x = '*'; if (x == '\n' || x == '\r') x = '*';
} }
time_t current_time; time_t current_time;
struct tm * time_info; struct tm * time_info;