mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -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) {
|
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)
|
//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)) {
|
using (StreamWriter w = new StreamWriter(path, true)) {
|
||||||
while (cache.Count > 0)
|
while (cache.Count > 0) {
|
||||||
w.Write(cache.Dequeue());
|
string item = cache.Dequeue();
|
||||||
|
item = Colors.StripColors(item);
|
||||||
|
w.Write(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user