From 876e40fc3cbea42a710de83606e613f9fea6d3d9 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Thu, 28 Feb 2013 09:01:43 +0000 Subject: [PATCH] Shows that I should at least run 'go test' before assuming my quick fixes will work. --- 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 228a88a..041a020 100644 --- a/client/state_handlers.go +++ b/client/state_handlers.go @@ -129,7 +129,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] @@ -161,7 +161,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?