initialized .nickcurrent with .nick
fixes empty return of Nick() directly after initialising
This commit is contained in:
parent
4f7b3d1c84
commit
f9d88d1af1
1
irc.go
1
irc.go
@ -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{}),
|
||||||
|
Loading…
Reference in New Issue
Block a user