From 90a9413351acca228c8059af67438ab4c4c389d8 Mon Sep 17 00:00:00 2001 From: Ro0mquy Date: Thu, 28 Feb 2013 01:06:31 +0100 Subject: [PATCH] Fixed bug fix --- client/state_handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/state_handlers.go b/client/state_handlers.go index a5b8058..191e48e 100644 --- a/client/state_handlers.go +++ b/client/state_handlers.go @@ -126,7 +126,7 @@ func (conn *Conn) h_TOPIC(line *Line) { // Handle 311 whois reply 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.Host = line.Args[3] nk.Name = line.Args[5] @@ -158,7 +158,7 @@ func (conn *Conn) h_332(line *Line) { // Handle 352 who reply 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.Host = line.Args[3] // XXX: do we care about the actual server the nick is on?