talk: Ignore commands

This commit is contained in:
Hamcha 2017-05-09 17:12:05 +02:00
parent f9f4b17d5c
commit def40e8bd7
1 changed files with 6 additions and 0 deletions

View File

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