mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
text cleanup
This commit is contained in:
parent
50fd4beb3f
commit
aaef2d237e
1 changed files with 5 additions and 0 deletions
|
|
@ -404,6 +404,11 @@ Packet.userMessageParsers = {
|
||||||
stream.readASCIIString();
|
stream.readASCIIString();
|
||||||
stream.readASCIIString();
|
stream.readASCIIString();
|
||||||
}
|
}
|
||||||
|
// cleanup color codes
|
||||||
|
text = text.replace('\u0001', '');
|
||||||
|
while ((pos = text.indexOf('\u0007')) !== -1) {
|
||||||
|
text = text.slice(0, pos) + text.slice(pos + 7);
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
packetType: 'sayText2',
|
packetType: 'sayText2',
|
||||||
client : client,
|
client : client,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue