diff options
author | Yuval Langer <yuval.langer@gmail.com> | 2018-05-18 22:33:37 +0300 |
---|---|---|
committer | Wim <wim@42.be> | 2018-05-18 21:33:37 +0200 |
commit | 887c2bc56d418b2c635514ea47b5d7dee6dead45 (patch) | |
tree | 5c49736e7db14d9d59f795d373765937424c9cfc /bridge/irc | |
parent | f0738a93c3d42bec580d69f8a0df6306e3f357c2 (diff) | |
download | matterbridge-msglm-887c2bc56d418b2c635514ea47b5d7dee6dead45.tar.gz matterbridge-msglm-887c2bc56d418b2c635514ea47b5d7dee6dead45.tar.bz2 matterbridge-msglm-887c2bc56d418b2c635514ea47b5d7dee6dead45.zip |
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
Diffstat (limited to 'bridge/irc')
-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 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) |