kunt

golang IRC bot
git clone git://git.2f30.org/kunt.git
Log | Files | Refs | LICENSE

commit f12bee82222b27669b03e3b43830ab13c483250d
parent 077bd1f4c0150b36009673a31e5d954bbed1c3b8
Author: dsp <dsp@2f30.org>
Date:   Wed Apr 30 18:21:35 +0100

removed the explict join. now only through netjoin fifocmd. made donechan global so the fifo can signal a shutdown

Diffstat:
src/kunt/kunt.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kunt/kunt.go b/src/kunt/kunt.go @@ -423,6 +423,7 @@ var titleregex *regexp.Regexp var configfile string var sslon = flag.Bool("s", false, "SSL support") var cfg *irc.Config +var donechan chan bool func init() { flag.StringVar(&configfile,"c","","JSON configuration file") @@ -550,12 +551,11 @@ func main() { log.Fatal(err) } kunt.ircCtx.Login() - kunt.ircCtx.JoinChannel("#2f30", "") syscall.Mkfifo(".kfifo", 0600) go fifoCmdParse() - donechan := make(chan bool) + donechan = make(chan bool) select { case stat := <-donechan: if stat {