mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 22:18:39 +01:00
Changed MUC mention autoreply to send in private.
This commit is contained in:
parent
f0b73b6bbd
commit
d3f1b75d17
1 changed files with 2 additions and 2 deletions
4
main.go
4
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
|
// 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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue