send each line as a new message for got notifications
This commit is contained in:
parent
4f03bc763a
commit
41007c4ad2
12
main.go
12
main.go
@ -207,11 +207,13 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("GOT: sending '%s'\n", msg)
|
for _, line := range strings.Split(msg, "\n") {
|
||||||
err = plugins.SendNotice(cli, got_room, msg)
|
log.Printf("GOT: sending '%s'\n", line)
|
||||||
if err != nil {
|
err = plugins.SendNotice(cli, got_room, line)
|
||||||
http.Error(w, fmt.Sprintf("can not send commit info: %s", err), http.StatusInternalServerError)
|
if err != nil {
|
||||||
return
|
http.Error(w, fmt.Sprintf("can not send commit info: %s", err), http.StatusInternalServerError)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(w, "ok")
|
fmt.Fprintf(w, "ok")
|
||||||
|
Loading…
Reference in New Issue
Block a user