mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -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();
|
||||
if( !useMessageTypes ) messageType = 0;
|
||||
// wom ^detail.user parsing
|
||||
if( text.StartsWith( "^detail.user", StringComparison.Ordinal ) ) {
|
||||
if( !useMessageTypes && text.StartsWith( "^detail.user=", StringComparison.Ordinal ) ) {
|
||||
messageType = 3;
|
||||
text = text.Substring( 13 );
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
if( !useMessageTypes && text.StartsWith( "^detail.user=", StringComparison.Ordinal ) ) {
|
||||
messageType = 3;
|
||||
text = text.Substring( 13 );
|
||||
}
|
||||
Window.AddChat( text, messageType );
|
||||
} break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user