From 09cff189721f7e234b0f123e59f32361d9ae643d Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Sat, 8 Mar 2014 11:59:34 -0800 Subject: [PATCH] print message when exiting main program --- ergonomadic.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ergonomadic.go b/ergonomadic.go index cf91bdea..3d107a7c 100644 --- a/ergonomadic.go +++ b/ergonomadic.go @@ -52,6 +52,8 @@ func main() { irc.DEBUG_CHANNEL = config.Debug.Channel irc.DEBUG_SERVER = config.Debug.Server + server := irc.NewServer(config) log.Println(irc.SEM_VER, "running") - irc.NewServer(config).Run() + defer log.Println(irc.SEM_VER, "exiting") + server.Run() }