From 056dbb7a618b86c4c679f9856270f7fb00fa40b1 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 30 Mar 2015 17:56:32 +0200 Subject: Auto join feature. --- config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.go') diff --git a/config.go b/config.go index 04caaf0..6f7d6b5 100644 --- a/config.go +++ b/config.go @@ -30,4 +30,8 @@ func checkConfig() { if check == "" { log.Fatal("Env WEB2IRC_IRC_SERVER_PORT not found.") } + check = os.Getenv("WEB2IRC_IRC_JOIN") + if check == "" { + log.Println("Env WEB2IRC_JOIN not found. We will not join on start up.") + } } -- cgit v1.2.3