From 6dee988b76852c6b15ef59061896ce48ce6ba978 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 14 Jul 2017 00:35:01 +0200 Subject: Fix megacheck / go vet issues --- bridge/irc/helper.go | 2 ++ bridge/irc/irc.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bridge/irc') diff --git a/bridge/irc/helper.go b/bridge/irc/helper.go index 355dc552..dd1cc468 100644 --- a/bridge/irc/helper.go +++ b/bridge/irc/helper.go @@ -4,6 +4,7 @@ import ( "strings" ) +/* func tableformatter(nicks []string, nicksPerRow int, continued bool) string { result := "|IRC users" if continued { @@ -29,6 +30,7 @@ func tableformatter(nicks []string, nicksPerRow int, continued bool) string { } return result } +*/ func plainformatter(nicks []string, nicksPerRow int) string { return strings.Join(nicks, ", ") + " currently on IRC" diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index b86ff508..a5f047d0 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -148,9 +148,9 @@ func (b *Birc) Send(msg config.Message) error { func (b *Birc) doSend() { rate := time.Millisecond * time.Duration(b.Config.MessageDelay) - throttle := time.Tick(rate) + throttle := time.NewTicker(rate) for msg := range b.Local { - <-throttle + <-throttle.C b.i.Privmsg(msg.Channel, msg.Username+msg.Text) } } -- cgit v1.2.3