From d128cc7491b8cf6b799f19b6b1b57114c71b97e5 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Thu, 1 Aug 2019 12:12:17 +0200 Subject: [PATCH] fix --- main.go | 1 + matrix.go | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/main.go b/main.go index 362ebb7..3a06ea2 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,7 @@ func init() { } func main() { + sayCh := make(chan string, 1024) xlog.Info("%s started", SoftwareInfo()) modules.Init(sayCh, *mods) modules.BotNick = strings.ToLower(*nick) diff --git a/matrix.go b/matrix.go index 1c1d1ea..1c282ce 100644 --- a/matrix.go +++ b/matrix.go @@ -31,11 +31,8 @@ func Matrix() { } }) - fmt.Println("hier 1") - go func() { for { - fmt.Println("hier 2") if err := cl.Sync(); err != nil { fmt.Println("Sync() returned ", err) } @@ -43,14 +40,9 @@ func Matrix() { } }() - fmt.Println("hier 11") - sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo()) - fmt.Println("hier 4") - for { - fmt.Println("hier 3") var targets string line := strings.Split(<-sayCh, "\n") if len(line) < 2 {