mirror of https://github.com/fluffle/goirc
Oh, god damnit. Should at least *try* to build things to make sure they work.
This commit is contained in:
parent
364c6da7ae
commit
2f31ca5dcf
|
@ -19,9 +19,9 @@ type Line struct {
|
||||||
|
|
||||||
// NOTE: this doesn't copy l.Time (this should be read-only anyway)
|
// NOTE: this doesn't copy l.Time (this should be read-only anyway)
|
||||||
func (l *Line) Copy() *Line {
|
func (l *Line) Copy() *Line {
|
||||||
nl := *line
|
nl := *l
|
||||||
nl.Args = make([]string, len(line.Args))
|
nl.Args = make([]string, len(l.Args))
|
||||||
copy(nl.Args, line.Args)
|
copy(nl.Args, l.Args)
|
||||||
return &nl
|
return &nl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue