diff --git a/chat/chatMsg.go b/chat/chatMsg.go index 7b68d08..0d0e4fa 100644 --- a/chat/chatMsg.go +++ b/chat/chatMsg.go @@ -92,10 +92,6 @@ func (m Message) String() string { } msg.WriteString(m.Text) - if format.Len() > 0 { - msg.WriteString("\033[0m") - } - //handle translate if m.Translate != "" { args := make([]interface{}, len(m.With)) @@ -113,5 +109,9 @@ func (m Message) String() string { msg.WriteString(Message(m.Extra[i]).String()) } } + + if format.Len() > 0 { + msg.WriteString("\033[0m") + } return msg.String() }