mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-13 01:36:49 +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
|
||||
// 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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue