From 617f3e9236beb4343ded8380f886c25ab3d5b23f Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 10 Jul 2015 21:57:13 +0000 Subject: Use variadic AddHandlers() --- xmppbot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmppbot.go b/xmppbot.go index 0c3c66d..4284fd2 100644 --- a/xmppbot.go +++ b/xmppbot.go @@ -18,14 +18,14 @@ func main() { goctl.Logger.SetHandler(log15.StdoutHandler) gc := goctl.NewGoctl(sockPath) - if err := gc.AddHandlers([]goctl.Handler{ + if err := gc.AddHandlers( handlers.Dial{}, handlers.Login{}, handlers.Bind{}, handlers.Stop{C: stopChan}, handlers.Presence{}, handlers.Raw{}, - }); err != nil { + ); err != nil { log15.Crit("Couldn't set up command handlers.", "error", err) return } -- cgit v1.2.3