This commit is contained in:
Hamcha 2016-06-21 21:26:13 +02:00
parent 20281a6113
commit acff5384b5
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) {
text = *(update.ReplyTo.Text)
user = update.ReplyTo.User
} else {
if strings.Index(text, " ") > 0 {
if strings.Index(*(update.Text), " ") > 0 {
text = strings.TrimSpace(strings.SplitN(*(update.Text), " ", 2)[1])
}
}