fix chat color error
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user