Fix command parser

Return text without argument
This commit is contained in:
c0re100 2025-05-02 03:40:05 +08:00
parent 3a8d30fd35
commit e5eeec83b3
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF

View file

@ -37,6 +37,10 @@ func CheckCommand(text string, entities []*TextEntity) string {
cmd = text[:i] cmd = text[:i]
} }
if cmd == "" {
return text
}
return cmd return cmd
} }
return "" return ""