talk: Ignore commands

This commit is contained in:
Hamcha 2017-05-09 17:12:05 +02:00
parent f9f4b17d5c
commit def40e8bd7

View file

@ -71,6 +71,12 @@ func talk(broker *tg.Broker, update tg.APIMessage) {
return return
} }
text := *(update.Text) text := *(update.Text)
// Must not be a command
if text[0] == '/' {
return
}
quoted := false quoted := false
// Make sure it's aimed at Clessy // Make sure it's aimed at Clessy