From acff5384b5e0000fdb396016ac62a07eda8e2274 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Tue, 21 Jun 2016 21:26:13 +0200 Subject: [PATCH] FUCK ME --- mods/unsplash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/unsplash.go b/mods/unsplash.go index c449bb6..51af487 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -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]) } }