Update message.go
cosmetic
This commit is contained in:
parent
0a96046305
commit
e91403d74f
@ -346,13 +346,11 @@ func (m *Message) init(bot *Bot) {
|
|||||||
if regexp.MustCompile(`^<`).MatchString(m.Content) {
|
if regexp.MustCompile(`^<`).MatchString(m.Content) {
|
||||||
m.Content = html.UnescapeString(m.Content)
|
m.Content = html.UnescapeString(m.Content)
|
||||||
}
|
}
|
||||||
//if m.IsText()
|
|
||||||
{
|
|
||||||
m.Content = strings.Replace(m.Content, `<br/>`, "\n", -1)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 格式化文本消息中的emoji表情
|
// 文本消息
|
||||||
if m.IsText() {
|
if m.IsText() {
|
||||||
|
m.Content = strings.Replace(m.Content, `<br/>`, "\n", -1)
|
||||||
|
// 格式化文本消息中的emoji表情
|
||||||
m.Content = FormatEmoji(m.Content)
|
m.Content = FormatEmoji(m.Content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user