mirror of https://github.com/fluffle/goirc
Really handle servers that don't use : properly
This commit is contained in:
parent
f7e3c71249
commit
c185010e08
|
@ -223,7 +223,7 @@ func (conn *Conn) recv() {
|
||||||
line.Args = args[1:len(args)]
|
line.Args = args[1:len(args)]
|
||||||
// some servers (Gamesurge) don't use : properly
|
// some servers (Gamesurge) don't use : properly
|
||||||
if line.Text == "" {
|
if line.Text == "" {
|
||||||
line.Text = args[1]
|
line.Text = args[len(args)-1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
conn.in <- line
|
conn.in <- line
|
||||||
|
|
Loading…
Reference in New Issue