From 0a53963ec03c2774b887e6bfcd2a167fb3ec6d17 Mon Sep 17 00:00:00 2001 From: mappu Date: Fri, 4 Nov 2016 19:01:01 +1300 Subject: [PATCH] fix special characters appearing in recieved PM's --- HubConnection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HubConnection.go b/HubConnection.go index a2058f9..7459416 100644 --- a/HubConnection.go +++ b/HubConnection.go @@ -224,7 +224,7 @@ func (this *HubConnection) processProtocolMessage(message string) { if rx_incomingTo.MatchString(commandParts[1]) { txparts := rx_incomingTo.FindStringSubmatch(commandParts[1]) if txparts[1] == this.Hco.Self.Nick && txparts[2] == txparts[3] { - this.processEvent(HubEvent{EventType: EVENT_PRIVATE, Nick: txparts[2], Message: txparts[4]}) + this.processEvent(HubEvent{EventType: EVENT_PRIVATE, Nick: txparts[2], Message: NMDCUnescape(txparts[4])}) valid = true } }