Changed MUC mention autoreply to send in private.

This commit is contained in:
Martin Dosch 2020-03-28 12:28:59 +01:00
parent f0b73b6bbd
commit d3f1b75d17

View file

@ -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 // If the message type is chat (e.g. private message), the command is the
// first word. // first word.
reply := "Bitte nicht mit dem Bot sprechen.\nhttps://www.kuketz-blog.de/chat/#bots" reply := "Bitte nicht mit dem Bot sprechen.\nhttps://www.kuketz-blog.de/chat/#bots"
_, err = client.Send(xmpp.Chat{Remote: muc, _, err = client.Send(xmpp.Chat{Remote: v.Remote,
Type: "groupchat", Text: strings.Split(v.Remote, "/")[1] + ": " + reply}) Type: "chat", Text: strings.Split(v.Remote, "/")[1] + ": " + reply})
if err != nil { if err != nil {
log.Fatal("Error: Failed sending message to MUC:", err) log.Fatal("Error: Failed sending message to MUC:", err)
} }