Lobby.SendChatString() and OnChatMessage fix

This commit is contained in:
kamyker 2020-08-05 01:17:59 +02:00
parent 950b256c27
commit c7ac4997ed

View File

@ -133,7 +133,8 @@ public void SetMemberData( string key, string value )
/// </summary> /// </summary>
public bool SendChatString( string message ) public bool SendChatString( string message )
{ {
var data = System.Text.Encoding.UTF8.GetBytes( message ); //adding null terminator as it's used in Helpers.MemoryToString
var data = System.Text.Encoding.UTF8.GetBytes( message + '\0' );
return SendChatBytes( data ); return SendChatBytes( data );
} }