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
This commit is contained in:
parent
f0738a93c3
commit
887c2bc56d
bridge/irc
|
@ -250,7 +250,7 @@ func (b *Birc) doSend() {
|
||||||
username := msg.Username
|
username := msg.Username
|
||||||
if b.GetBool("Colornicks") {
|
if b.GetBool("Colornicks") {
|
||||||
checksum := crc32.ChecksumIEEE([]byte(msg.Username))
|
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 {
|
if msg.Event == config.EVENT_USER_ACTION {
|
||||||
b.i.Cmd.Action(msg.Channel, username+msg.Text)
|
b.i.Cmd.Action(msg.Channel, username+msg.Text)
|
||||||
|
|
Loading…
Reference in New Issue