From de31fa0ad210bef630aafda68a65a482044fc88b Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 31 Jan 2022 22:23:37 -0500 Subject: [PATCH] Refactor the /members command --- telegram/commands.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/telegram/commands.go b/telegram/commands.go index b8a9c5d..133e99b 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -717,12 +717,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool) )) } - gateway.SendMessage( - c.jid, - strconv.FormatInt(chatID, 10), - strings.Join(entries, "\n"), - c.xmpp, - ) + return strings.Join(entries, "\n"), true case "help": return helpString(helpTypeChat), true default: