Trim spaces at the end of a serialized master server list request.

feature-npv2
Icedream 2014-07-05 18:44:37 +02:00
parent 576b174184
commit 91aed86380
1 changed files with 1 additions and 2 deletions

View File

@ -35,9 +35,8 @@ namespace NPSharp.Master.Messages.Client
protected override string Serialize()
{
// I wonder if an extra useless space char at the end is okay in this case
return string.Format("{0} {1} {2} {3}", Name, GameName, ProtocolVersion,
string.Join(" ", Keywords.Select(k => k.ToString())));
string.Join(" ", Keywords.Distinct().Select(k => k.ToString()))).TrimEnd();
}
protected override void Deserialize(string[] arguments)