diff options
author | Wim <wim@42.be> | 2017-08-29 21:35:36 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-08-29 21:35:36 +0200 |
commit | f4fb83e787d3555668d34e572e485fa9cace9bbd (patch) | |
tree | ec9fb9797b6beb15659a55cafcffa3f5194573c9 /bridge | |
parent | e7fcb25107ff6f7676624fb3011e2bc1bede4cd0 (diff) | |
download | matterbridge-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.go | 2 |
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" |