mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Strip colour codes from server logs
This commit is contained in:
parent
42d7f2ff23
commit
42cdb3725d
@ -105,8 +105,11 @@ namespace MCGalaxy {
|
||||
static void FlushCache(string path, Queue<string> cache) {
|
||||
//TODO: not happy about constantly opening and closing a stream like this but I suppose its ok (Pidgeon)
|
||||
using (StreamWriter w = new StreamWriter(path, true)) {
|
||||
while (cache.Count > 0)
|
||||
w.Write(cache.Dequeue());
|
||||
while (cache.Count > 0) {
|
||||
string item = cache.Dequeue();
|
||||
item = Colors.StripColors(item);
|
||||
w.Write(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user