summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index cad0bdf8..e134fdad 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -85,10 +85,10 @@ func (b *Birc) Connect() error {
i.Handlers.Add(girc.RPL_WELCOME, b.handleNewConnection)
i.Handlers.Add(girc.RPL_ENDOFMOTD, b.handleOtherAuth)
i.Handlers.Add(girc.ALL_EVENTS, b.handleOther)
+ b.i = i
go b.doConnect()
- b.i = i
err = <-b.connected
if err != nil {
return fmt.Errorf("connection failed %s", err)