diff --git a/ClassicalSharp/2D/Widgets/Chat/TextInputWidget.cs b/ClassicalSharp/2D/Widgets/Chat/TextInputWidget.cs index 7349087e9..c5be6265a 100644 --- a/ClassicalSharp/2D/Widgets/Chat/TextInputWidget.cs +++ b/ClassicalSharp/2D/Widgets/Chat/TextInputWidget.cs @@ -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(); + // don't automatically word wrap the message. while( allText.Length > 64 ) { game.Chat.Send( allText.Substring( 0, 64 ), true ); allText = allText.Substring( 64 ); diff --git a/ClassicalSharp/Game/ChatLog.cs b/ClassicalSharp/Game/ChatLog.cs index 929e16a56..fa0292372 100644 --- a/ClassicalSharp/Game/ChatLog.cs +++ b/ClassicalSharp/Game/ChatLog.cs @@ -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 );