Input log should store multiple lines as one message, instead of one log entry per line. (Thanks nyxzimus)

This commit is contained in:
UnknownShadow200 2016-01-05 10:53:41 +11:00
parent 2aa00c1684
commit 8b72de5e79
2 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -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 );