summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-14 00:35:01 +0200
committerWim <wim@42.be>2017-07-14 00:35:01 +0200
commit6dee988b76852c6b15ef59061896ce48ce6ba978 (patch)
treeb2a187be4850e212400bb9627e60327c63370b30 /bridge/irc/irc.go
parent5af40db3965649348143a530bea671574fb1ef54 (diff)
downloadmatterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.tar.gz
matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.tar.bz2
matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.zip
Fix megacheck / go vet issues
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go4
1 files changed, 2 insertions, 2 deletions
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)
}
}