From 9b9197f5f6a2ac84ab4f57fe58a05297f305579c Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sun, 24 Oct 2010 10:06:18 +0100 Subject: [PATCH] *cough* I should pay more attention when merging... --- irc/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/connection.go b/irc/connection.go index 3a88603..7a69d80 100644 --- a/irc/connection.go +++ b/irc/connection.go @@ -117,8 +117,8 @@ func (conn *Conn) Connect(host string, ssl bool, pass ...string) os.Error { go conn.send() go conn.recv() - if pass != "" { - conn.Pass(pass) + if len(pass) > 0 { + conn.Pass(pass[0]) } conn.Nick(conn.Me.Nick) conn.User(conn.Me.Ident, conn.Me.Name)