From f0cbc1785f81350d8575566b2c5118e7672e8d80 Mon Sep 17 00:00:00 2001 From: an Date: Sun, 22 Apr 2018 11:44:41 +0200 Subject: [PATCH] fixed careless mistakes --- modules/webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/webhook.go b/modules/webhook.go index 45911c1..1212ae9 100644 --- a/modules/webhook.go +++ b/modules/webhook.go @@ -24,7 +24,7 @@ func init() { func webhookRun() { xlog.Info("webhook listener started") http.HandleFunc("/webhook", webhookHandleHTTP) - xlog.Fatal(http.ListenAndServe(":"+*webhookPort, nil)) + xlog.Fatal("%v", http.ListenAndServe(":"+*webhookPort, nil)) } func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) { @@ -38,7 +38,7 @@ func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) { for k, v := range data { fmt.Printf("%s : %v\n", k, v) if k == "text" { - sayCh <- *webhookChan + "\n" + v + SayCh <- fmt.Printf("%s\n%v", *webhookChan, v) } } }