Fix bug found by MODE handler test.

This commit is contained in:
Alex Bramley 2011-09-09 22:33:08 +01:00
parent c5146e93f6
commit d15d1074f5
1 changed files with 1 additions and 1 deletions

View File

@ -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) conn.error("irc.MODE(): buh? recieved MODE %s for (non-me) nick %s", line.Args[0], n.Nick)
return return
} }
conn.ParseNickModes(n, line.Args[0]) conn.ParseNickModes(n, line.Args[1])
} else { } else {
conn.error("irc.MODE(): buh? not sure what to do with MODE %s", strings.Join(line.Args, " ")) conn.error("irc.MODE(): buh? not sure what to do with MODE %s", strings.Join(line.Args, " "))
} }