only remove newlines
This commit is contained in:
parent
3fccca1012
commit
e5a248b966
@ -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;
|
||||||
|
Reference in New Issue
Block a user