mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
Simplify ^detail.user= parsing.
This commit is contained in:
parent
45d0e53a72
commit
d0fc1fe791
@ -435,13 +435,9 @@ namespace ClassicalSharp {
|
|||||||
string text = reader.ReadTextString();
|
string text = reader.ReadTextString();
|
||||||
if( !useMessageTypes ) messageType = 0;
|
if( !useMessageTypes ) messageType = 0;
|
||||||
// wom ^detail.user parsing
|
// wom ^detail.user parsing
|
||||||
if( text.StartsWith( "^detail.user", StringComparison.Ordinal ) ) {
|
if( !useMessageTypes && text.StartsWith( "^detail.user=", StringComparison.Ordinal ) ) {
|
||||||
if( !useMessageTypes && text.StartsWith( "^detail.user=", StringComparison.Ordinal ) ) {
|
messageType = 3;
|
||||||
messageType = 3;
|
text = text.Substring( 13 );
|
||||||
text = text.Substring( 13 );
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Window.AddChat( text, messageType );
|
Window.AddChat( text, messageType );
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user