diff options
author | Wim <wim@42.be> | 2017-07-14 00:35:01 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-07-14 00:35:01 +0200 |
commit | 6dee988b76852c6b15ef59061896ce48ce6ba978 (patch) | |
tree | b2a187be4850e212400bb9627e60327c63370b30 /bridge/irc | |
parent | 5af40db3965649348143a530bea671574fb1ef54 (diff) | |
download | matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.tar.gz matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.tar.bz2 matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.zip |
Fix megacheck / go vet issues
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/helper.go | 2 | ||||
-rw-r--r-- | bridge/irc/irc.go | 4 |
2 files changed, 4 insertions, 2 deletions
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) } } |