Skip to content

Commit

Permalink
Fixed issue in the TeamspeakService where chat strings were not prope…
Browse files Browse the repository at this point in the history
…rly decoded.
  • Loading branch information
SamHurne committed Oct 8, 2014
1 parent 77081ca commit 090d160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GW2PAO.TS3/Services/TeamspeakService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ private void HandleTextMessage(string notificationString)
{
var notificationProperties = notificationString.Split(' ');
uint clientId = uint.Parse(notificationProperties.First(id => id.StartsWith(Properties.InvokerID)).Substring(Properties.InvokerID.Length + 1));
string clientNickname = notificationProperties.First(id => id.StartsWith(Properties.InvokerName)).Substring(Properties.InvokerName.Length + 1);
string message = notificationProperties.First(id => id.StartsWith(Properties.Message)).Substring(Properties.Message.Length + 1);
string clientNickname = this.DecodeString(notificationProperties.First(id => id.StartsWith(Properties.InvokerName)).Substring(Properties.InvokerName.Length + 1));
string message = this.DecodeString(notificationProperties.First(id => id.StartsWith(Properties.Message)).Substring(Properties.Message.Length + 1));

// Raise the text message received event
logger.Trace("Text message received From {0} ({1}): {2}", clientId, clientNickname, message);
Expand Down

0 comments on commit 090d160

Please sign in to comment.