summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/irc')
-rw-r--r--bridge/irc/helper.go2
-rw-r--r--bridge/irc/irc.go4
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)
}
}