mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-08-11 21:38:09 +00:00
@@ -183,7 +183,7 @@ func (b *Bdiscord) stripCustomoji(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, "_") {
|
if strings.HasPrefix(text, "_") && strings.HasSuffix(text, "_") {
|
||||||
return text[1:], true
|
return text[1 : len(text)-1], true
|
||||||
}
|
}
|
||||||
return text, false
|
return text, false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user