diff --git a/main.go b/main.go index 4a8e387..ea13f17 100644 --- a/main.go +++ b/main.go @@ -113,18 +113,14 @@ func main() { if *history { fmt.Printf("Retrieving chat.\n") - go getHistory(client) + getHistory(client) + return } - fmt.Println("Started !") go ListenCW(client) + fmt.Println("Started !") - log.Println("Forever.") // Main loop - for { - time.Sleep(1 * time.Second) - log.Println("Alive.") - } forever := make(chan bool) <-forever }