initialized .nickcurrent with .nick

fixes empty return of Nick() directly after initialising
This commit is contained in:
Julian Daube 2015-06-20 22:24:25 +02:00
parent 4f7b3d1c84
commit f9d88d1af1

1
irc.go
View File

@ -402,6 +402,7 @@ func IRC(nick, user string) *Connection {
irc := &Connection{ irc := &Connection{
nick: nick, nick: nick,
nickcurrent: nick,
user: user, user: user,
Log: log.New(os.Stdout, "", log.LstdFlags), Log: log.New(os.Stdout, "", log.LstdFlags),
end: make(chan struct{}), end: make(chan struct{}),