mirror of https://github.com/fluffle/goirc
Updated for changes to strings.Split()
This commit is contained in:
parent
06f7cdd19b
commit
398a6f4f79
|
@ -193,7 +193,7 @@ func (conn *Conn) recv() {
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
line.Text = args[1]
|
line.Text = args[1]
|
||||||
}
|
}
|
||||||
args = strings.Split(args[0], " ", 0)
|
args = strings.Split(args[0], " ", -1)
|
||||||
line.Cmd = strings.ToUpper(args[0])
|
line.Cmd = strings.ToUpper(args[0])
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
line.Args = args[1:len(args)]
|
line.Args = args[1:len(args)]
|
||||||
|
|
|
@ -424,7 +424,7 @@ func (conn *Conn) setupEvents() {
|
||||||
// Handle 353 names reply
|
// Handle 353 names reply
|
||||||
conn.AddHandler("353", func(conn *Conn, line *Line) {
|
conn.AddHandler("353", func(conn *Conn, line *Line) {
|
||||||
if ch := conn.GetChannel(line.Args[2]); ch != nil {
|
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 {
|
for _, nick := range nicks {
|
||||||
// UnrealIRCd's coders are lazy and leave a trailing space
|
// UnrealIRCd's coders are lazy and leave a trailing space
|
||||||
if nick == "" {
|
if nick == "" {
|
||||||
|
|
Loading…
Reference in New Issue