1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 10:41:42 +00:00

Tell state tracker all the information about Me.

This commit is contained in:
Alex Bramley 2015-04-01 17:54:33 +01:00
parent 0cac69d2ee
commit b4870bc685
2 changed files with 8 additions and 5 deletions

View file

@ -187,9 +187,8 @@ func (conn *Conn) EnableStateTracking() {
if conn.st == nil {
n := conn.cfg.Me
conn.st = state.NewTracker(n.Nick)
conn.st.NickInfo(n.Nick, n.Ident, n.Host, n.Name)
conn.cfg.Me = conn.st.Me()
conn.cfg.Me.Ident = n.Ident
conn.cfg.Me.Name = n.Name
conn.addSTHandlers()
}
}