From 887c2bc56d418b2c635514ea47b5d7dee6dead45 Mon Sep 17 00:00:00 2001 From: Yuval Langer Date: Fri, 18 May 2018 22:33:37 +0300 Subject: End IRC username formatting with a total formatting reset (irc) (#425) * Add zero padding to the color code * Change color ending into total formatting reset --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/irc') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index cb0a6fe7..a9a74d78 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -250,7 +250,7 @@ func (b *Birc) doSend() { username := msg.Username if b.GetBool("Colornicks") { checksum := crc32.ChecksumIEEE([]byte(msg.Username)) - username = fmt.Sprintf("\x03%d%s\x03", checksum%0x10, msg.Username) + username = fmt.Sprintf("\x03%02d%s\x0F", checksum%0x10, msg.Username) } if msg.Event == config.EVENT_USER_ACTION { b.i.Cmd.Action(msg.Channel, username+msg.Text) -- cgit v1.2.3