Fix format string bug (irc) (#428)

This commit is contained in:
Kazuhiro NISHIYAMA 2018-05-19 04:45:39 +09:00 committed by Wim
parent 887c2bc56d
commit f1db166ac4
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ func (b *Birc) Send(msg config.Message) (string, error) {
b.Log.Errorf("charset from utf-8 conversion failed: %s", err) b.Log.Errorf("charset from utf-8 conversion failed: %s", err)
return "", err return "", err
} }
fmt.Fprintf(w, msg.Text) fmt.Fprint(w, msg.Text)
w.Close() w.Close()
msg.Text = buf.String() msg.Text = buf.String()
} }