From a16ad8bf3b39d99658f306d3c065680c606e4801 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 1 Apr 2017 17:24:19 +0200 Subject: Reuse connection when using same bridge with another gateway. See #87 --- bridge/irc/irc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge/irc') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index db430800..78ba2e54 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -60,6 +60,7 @@ func (b *Birc) Command(msg *config.Message) string { } func (b *Birc) Connect() error { + flog.Info("hier?") b.Local = make(chan config.Message, b.Config.MessageQueue+10) flog.Infof("Connecting %s", b.Config.Server) i := irc.IRC(b.Config.Nick, b.Config.Nick) @@ -92,7 +93,7 @@ func (b *Birc) Connect() error { } func (b *Birc) Disconnect() error { - b.i.Disconnect() + //b.i.Disconnect() close(b.Local) return nil } -- cgit v1.2.3