From 090d1602d34a4ab14bfe864ff09e91bf766e0692 Mon Sep 17 00:00:00 2001 From: SamHurne Date: Tue, 7 Oct 2014 20:10:35 -0400 Subject: [PATCH] Fixed issue in the TeamspeakService where chat strings were not properly decoded. --- GW2PAO.TS3/Services/TeamspeakService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GW2PAO.TS3/Services/TeamspeakService.cs b/GW2PAO.TS3/Services/TeamspeakService.cs index 55f1bde..09cf575 100644 --- a/GW2PAO.TS3/Services/TeamspeakService.cs +++ b/GW2PAO.TS3/Services/TeamspeakService.cs @@ -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);