summaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorRobert Gerus <rgerus@dpd.com.pl>2015-12-14 14:58:42 +0100
committerRobert Gerus <rgerus@dpd.com.pl>2015-12-14 14:58:42 +0100
commitacad1ec1cb0f650e8d8966511e3b06ed299cf37c (patch)
treea8a1d2fbb6b8f330b03f9f0917b25b9e5eb5c734 /irc
parent58239223169b9a94ce579e2ee7fe495646187579 (diff)
downloadgorepost-acad1ec1cb0f650e8d8966511e3b06ed299cf37c.tar.gz
gorepost-acad1ec1cb0f650e8d8966511e3b06ed299cf37c.tar.bz2
gorepost-acad1ec1cb0f650e8d8966511e3b06ed299cf37c.tar.xz
gorepost-acad1ec1cb0f650e8d8966511e3b06ed299cf37c.zip
Use external dyncfg.
Diffstat (limited to 'irc')
-rw-r--r--irc/irc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/irc/irc.go b/irc/irc.go
index c3049e7..24f9d3d 100644
--- a/irc/irc.go
+++ b/irc/irc.go
@@ -12,7 +12,7 @@ import (
"sync"
"time"
- "github.com/arachnist/gorepost/config"
+ "github.com/arachnist/dyncfg"
)
const delim byte = '\n'
@@ -32,7 +32,7 @@ type Connection struct {
quitrecv chan struct{}
quitkeeper chan struct{}
l sync.Mutex
- cfg *config.Config
+ cfg *dyncfg.Dyncfg
}
// Sender sends IRC messages to server and logs their contents.
@@ -179,7 +179,7 @@ func (c *Connection) Keeper() {
}
// Setup performs initialization tasks.
-func (c *Connection) Setup(dispatcher func(func(Message), Message), network string, config *config.Config) {
+func (c *Connection) Setup(dispatcher func(func(Message), Message), network string, config *dyncfg.Dyncfg) {
rand.Seed(time.Now().UnixNano())
c.reconnect = make(chan struct{}, 1)