mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 11:42:03 -08:00
parent
a18cb74f03
commit
2d8f749e36
@ -188,8 +188,9 @@ func replaceEmotes(text string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bdiscord) replaceAction(text string) (string, bool) {
|
func (b *Bdiscord) replaceAction(text string) (string, bool) {
|
||||||
if strings.HasPrefix(text, "_") && strings.HasSuffix(text, "_") {
|
length := len(text)
|
||||||
return text[1 : len(text)-1], true
|
if length > 1 && text[0] == '_' && text[length-1] == '_' {
|
||||||
|
return text[1 : length-1], true
|
||||||
}
|
}
|
||||||
return text, false
|
return text, false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user