mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 14:08:39 +01:00
i18n: fränggisch
This commit is contained in:
parent
0f37d0fd57
commit
1f0a1b7292
2 changed files with 8 additions and 4 deletions
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/mmcdole/gofeed"
|
||||
"github.com/jaytaylor/html2text"
|
||||
"github.com/mmcdole/gofeed"
|
||||
)
|
||||
|
||||
// Get new articles for specified feed.
|
||||
|
|
|
@ -124,9 +124,13 @@ func processStanzas(client *xmpp.Client, muc string, mucNick string, feeds []str
|
|||
}
|
||||
}
|
||||
// Reply with pong to ping requests.
|
||||
case "ping":
|
||||
|
||||
reply := "pong"
|
||||
case "ping", "bing":
|
||||
var reply string
|
||||
if command == "bing" {
|
||||
reply = "bong"
|
||||
} else {
|
||||
reply = "pong"
|
||||
}
|
||||
|
||||
if v.Type == "groupchat" {
|
||||
_, err = client.Send(xmpp.Chat{Remote: muc,
|
||||
|
|
Loading…
Reference in a new issue