mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 14:08:39 +01:00
Moved error handling for failed message send.
This commit is contained in:
parent
c38ad204d1
commit
bf456cd5c7
1 changed files with 3 additions and 3 deletions
|
@ -141,9 +141,9 @@ func main() {
|
||||||
|
|
||||||
if output != "" {
|
if output != "" {
|
||||||
_, err = client.Send(xmpp.Chat{Remote: config.Muc, Type: "groupchat", Text: output})
|
_, err = client.Send(xmpp.Chat{Remote: config.Muc, Type: "groupchat", Text: output})
|
||||||
}
|
if err != nil {
|
||||||
if err != nil {
|
log.Fatal(err)
|
||||||
log.Fatal(err)
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
time.Sleep(30 * time.Second)
|
time.Sleep(30 * time.Second)
|
||||||
|
|
Loading…
Reference in a new issue