Fixed bug fix

This commit is contained in:
Ro0mquy 2013-02-28 01:06:31 +01:00
parent 9d069586a7
commit 90a9413351
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ func (conn *Conn) h_TOPIC(line *Line) {
// Handle 311 whois reply // Handle 311 whois reply
func (conn *Conn) h_311(line *Line) { func (conn *Conn) h_311(line *Line) {
if nk := conn.st.GetNick(line.Args[1]); nk != nil && nk != conn.Me() { if nk := conn.st.GetNick(line.Args[1]); nk != nil && nk != conn.Me {
nk.Ident = line.Args[2] nk.Ident = line.Args[2]
nk.Host = line.Args[3] nk.Host = line.Args[3]
nk.Name = line.Args[5] nk.Name = line.Args[5]
@ -158,7 +158,7 @@ func (conn *Conn) h_332(line *Line) {
// Handle 352 who reply // Handle 352 who reply
func (conn *Conn) h_352(line *Line) { func (conn *Conn) h_352(line *Line) {
if nk := conn.st.GetNick(line.Args[5]); nk != nil && nk != conn.Me() { if nk := conn.st.GetNick(line.Args[5]); nk != nil && nk != conn.Me {
nk.Ident = line.Args[2] nk.Ident = line.Args[2]
nk.Host = line.Args[3] nk.Host = line.Args[3]
// XXX: do we care about the actual server the nick is on? // XXX: do we care about the actual server the nick is on?