From d15d1074f57b3776e1d90761d63fcb8b92a9b880 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Fri, 9 Sep 2011 22:33:08 +0100 Subject: [PATCH] Fix bug found by MODE handler test. --- client/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/handlers.go b/client/handlers.go index 8be354e..295bfb7 100644 --- a/client/handlers.go +++ b/client/handlers.go @@ -176,7 +176,7 @@ func (conn *Conn) h_MODE(line *Line) { conn.error("irc.MODE(): buh? recieved MODE %s for (non-me) nick %s", line.Args[0], n.Nick) return } - conn.ParseNickModes(n, line.Args[0]) + conn.ParseNickModes(n, line.Args[1]) } else { conn.error("irc.MODE(): buh? not sure what to do with MODE %s", strings.Join(line.Args, " ")) }