1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 18:44:50 +00:00

*cough* I should pay more attention when merging...

This commit is contained in:
Alex Bramley 2010-10-24 10:06:18 +01:00
parent 036cc4c3eb
commit 9b9197f5f6

View file

@ -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)