client/connection: conn.Me(): do not override cfg.Me or it is lost for next reconnect

This commit is contained in:
StalkR 2015-04-01 01:33:26 +02:00
parent 0cac69d2ee
commit b91563eccf
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ func (conn *Conn) Me() *state.Nick {
conn.mu.RLock()
defer conn.mu.RUnlock()
if conn.st != nil {
conn.cfg.Me = conn.st.Me()
return conn.st.Me()
}
return conn.cfg.Me
}