FUCK ME
This commit is contained in:
parent
20281a6113
commit
acff5384b5
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) {
|
||||||
text = *(update.ReplyTo.Text)
|
text = *(update.ReplyTo.Text)
|
||||||
user = update.ReplyTo.User
|
user = update.ReplyTo.User
|
||||||
} else {
|
} else {
|
||||||
if strings.Index(text, " ") > 0 {
|
if strings.Index(*(update.Text), " ") > 0 {
|
||||||
text = strings.TrimSpace(strings.SplitN(*(update.Text), " ", 2)[1])
|
text = strings.TrimSpace(strings.SplitN(*(update.Text), " ", 2)[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue