mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -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() {
|
void SendInBuffer() {
|
||||||
if( chatInputText.Empty ) return;
|
if( chatInputText.Empty ) return;
|
||||||
|
string allText = chatInputText.GetString();
|
||||||
|
game.Chat.InputLog.Add( allText );
|
||||||
|
|
||||||
if( game.Network.ServerSupportsPatialMessages ) {
|
if( game.Network.ServerSupportsPatialMessages ) {
|
||||||
// don't automatically word wrap the message.
|
// don't automatically word wrap the message.
|
||||||
string allText = chatInputText.GetString();
|
|
||||||
while( allText.Length > 64 ) {
|
while( allText.Length > 64 ) {
|
||||||
game.Chat.Send( allText.Substring( 0, 64 ), true );
|
game.Chat.Send( allText.Substring( 0, 64 ), true );
|
||||||
allText = allText.Substring( 64 );
|
allText = allText.Substring( 64 );
|
||||||
|
@ -26,7 +26,6 @@ namespace ClassicalSharp {
|
|||||||
public void Send( string text, bool partial ) {
|
public void Send( string text, bool partial ) {
|
||||||
text = text.TrimEnd( trimChars );
|
text = text.TrimEnd( trimChars );
|
||||||
if( String.IsNullOrEmpty( text ) ) return;
|
if( String.IsNullOrEmpty( text ) ) return;
|
||||||
InputLog.Add( text );
|
|
||||||
|
|
||||||
if( CommandManager.IsCommandPrefix( text ) ) {
|
if( CommandManager.IsCommandPrefix( text ) ) {
|
||||||
game.CommandManager.Execute( text );
|
game.CommandManager.Execute( text );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user