mirror of https://github.com/fluffle/goirc
client/connection: conn.Me(): do not override cfg.Me or it is lost for next reconnect
This commit is contained in:
parent
0cac69d2ee
commit
b91563eccf
|
@ -172,7 +172,7 @@ func (conn *Conn) Me() *state.Nick {
|
||||||
conn.mu.RLock()
|
conn.mu.RLock()
|
||||||
defer conn.mu.RUnlock()
|
defer conn.mu.RUnlock()
|
||||||
if conn.st != nil {
|
if conn.st != nil {
|
||||||
conn.cfg.Me = conn.st.Me()
|
return conn.st.Me()
|
||||||
}
|
}
|
||||||
return conn.cfg.Me
|
return conn.cfg.Me
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue