summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-08-29 21:35:36 +0200
committerWim <wim@42.be>2017-08-29 21:35:36 +0200
commitf4fb83e787d3555668d34e572e485fa9cace9bbd (patch)
treeec9fb9797b6beb15659a55cafcffa3f5194573c9 /bridge
parente7fcb25107ff6f7676624fb3011e2bc1bede4cd0 (diff)
downloadmatterbridge-msglm-f4fb83e787d3555668d34e572e485fa9cace9bbd.tar.gz
matterbridge-msglm-f4fb83e787d3555668d34e572e485fa9cace9bbd.tar.bz2
matterbridge-msglm-f4fb83e787d3555668d34e572e485fa9cace9bbd.zip
Use the detected charset (irc)
Diffstat (limited to 'bridge')
-rw-r--r--bridge/irc/irc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 5176389b..aecd85fd 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -277,7 +277,7 @@ 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"