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
d6ac053b62
commit
f0a9246c7a
|
@ -19,9 +19,9 @@ type Line struct {
|
|||
|
||||
// NOTE: this doesn't copy l.Time (this should be read-only anyway)
|
||||
func (l *Line) Copy() *Line {
|
||||
nl := *line
|
||||
nl.Args = make([]string, len(line.Args))
|
||||
copy(nl.Args, line.Args)
|
||||
nl := *l
|
||||
nl.Args = make([]string, len(l.Args))
|
||||
copy(nl.Args, l.Args)
|
||||
return &nl
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue