From e8996e0378c268b0b44573ba8e14d4f394127a0d Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 20 Jun 2016 17:58:43 +0200 Subject: [PATCH] /unsplash --- mods/unsplash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/unsplash.go b/mods/unsplash.go index 69c8c39..6326699 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 { - text = strings.Replace(*(update.Text), "/unsplash ", "", 1) + text = strings.TrimSpace(strings.Replace(*(update.Text), "/unsplash", "", 1)) } author := user.FirstName