Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 1cb091db69723cb5a08b0ee98a44c3288f071d3f Author: Wim <wim@42.be> Date: Tue Aug 29 21:35:36 2017 +0000 Use the detected charset (irc) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 5176389..aecd85f 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -2777 +2777 @@ func (b *Birc) handlePrivMsg(event *irc.Event) {   return   }   flog.Debugf("detected %s confidence %#v", result.Charset, result.Confidence) - r, err = charset.NewReader(result.Charset, strings.NewReader(msg)) + mycharset = result.Charset   // if we're not sure, just pick ISO-8859-1   if result.Confidence < 80 {   mycharset = "ISO-8859-1"