mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
Input log should store multiple lines as one message, instead of one log entry per line. (Thanks nyxzimus)
This commit is contained in:
parent
2aa00c1684
commit
8b72de5e79
@ -210,10 +210,11 @@ namespace ClassicalSharp {
|
||||
|
||||
void SendInBuffer() {
|
||||
if( chatInputText.Empty ) return;
|
||||
string allText = chatInputText.GetString();
|
||||
game.Chat.InputLog.Add( allText );
|
||||
|
||||
if( game.Network.ServerSupportsPatialMessages ) {
|
||||
// don't automatically word wrap the message.
|
||||
string allText = chatInputText.GetString();
|
||||
while( allText.Length > 64 ) {
|
||||
game.Chat.Send( allText.Substring( 0, 64 ), true );
|
||||
allText = allText.Substring( 64 );
|
||||
|
@ -26,7 +26,6 @@ namespace ClassicalSharp {
|
||||
public void Send( string text, bool partial ) {
|
||||
text = text.TrimEnd( trimChars );
|
||||
if( String.IsNullOrEmpty( text ) ) return;
|
||||
InputLog.Add( text );
|
||||
|
||||
if( CommandManager.IsCommandPrefix( text ) ) {
|
||||
game.CommandManager.Execute( text );
|
||||
|
Loading…
x
Reference in New Issue
Block a user