kunt

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

commit 9f23e261a74567dd37b6fd8b6d9174c0f819a15a
parent 6d9c0caadffc98691d574848d8aa74d8bf16d6e6
Author: sin <sin@2f30.org>
Date:   Fri May 17 13:58:53 +0100

handle kick event

Diffstat:
src/kunt/kunt.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/kunt/kunt.go b/src/kunt/kunt.go @@ -424,6 +424,11 @@ func main() { os.Exit(0) }}) + kunt.ircCtx.AddEventHandler(irc.Event{"KICK", func(msg irc.Message) { + time.Sleep(1500 * time.Millisecond) + kunt.ircCtx.Join("#2f30", "") + }}) + err = kunt.ircCtx.Connect() if err != nil { log.Fatal(err)