diff --git a/commands/sponge.go b/commands/sponge.go index c1156b6..f1a594a 100644 --- a/commands/sponge.go +++ b/commands/sponge.go @@ -29,10 +29,10 @@ func Spongify(input_message string) string { func Sponge(m *tb.Message) { message := "" - if m.IsReply() { - message = Spongify(m.ReplyTo.Text) - } else { - message = Spongify(shared.History.LastMessage(m.Chat.ID)) - } - shared.Bot.Send(m.Chat, message) + if m.IsReply() { + message = Spongify(m.ReplyTo.Text) + } else { + message = Spongify(shared.History.LastMessage(m.Chat.ID)) + } + shared.Bot.Send(m.Chat, message) }