Updated for changes to strings.Split()

This commit is contained in:
Jesse McNelis 2010-07-17 07:52:18 +10:00
parent 06f7cdd19b
commit 398a6f4f79
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ func (conn *Conn) recv() {
if len(args) > 1 {
line.Text = args[1]
}
args = strings.Split(args[0], " ", 0)
args = strings.Split(args[0], " ", -1)
line.Cmd = strings.ToUpper(args[0])
if len(args) > 1 {
line.Args = args[1:len(args)]

View File

@ -424,7 +424,7 @@ func (conn *Conn) setupEvents() {
// Handle 353 names reply
conn.AddHandler("353", func(conn *Conn, line *Line) {
if ch := conn.GetChannel(line.Args[2]); ch != nil {
nicks := strings.Split(line.Text, " ", 0)
nicks := strings.Split(line.Text, " ", -1)
for _, nick := range nicks {
// UnrealIRCd's coders are lazy and leave a trailing space
if nick == "" {