From d3f1b75d177263713b9cd7807d463e215c0d7303 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Sat, 28 Mar 2020 12:28:59 +0100 Subject: [PATCH] Changed MUC mention autoreply to send in private. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f3b696c..7a973b7 100644 --- a/main.go +++ b/main.go @@ -259,8 +259,8 @@ func processStanzas(client *xmpp.Client, muc string, mucNick string, feeds []str // If the message type is chat (e.g. private message), the command is the // first word. reply := "Bitte nicht mit dem Bot sprechen.\nhttps://www.kuketz-blog.de/chat/#bots" - _, err = client.Send(xmpp.Chat{Remote: muc, - Type: "groupchat", Text: strings.Split(v.Remote, "/")[1] + ": " + reply}) + _, err = client.Send(xmpp.Chat{Remote: v.Remote, + Type: "chat", Text: strings.Split(v.Remote, "/")[1] + ": " + reply}) if err != nil { log.Fatal("Error: Failed sending message to MUC:", err) }