aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--message.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/message.go b/message.go
index 190c198..ffb29e8 100644
--- a/message.go
+++ b/message.go
@@ -10,7 +10,7 @@ import (
type Message struct {
Command string
- Source *Source
+ Source Source
Tags map[string]string
Args []string
}
@@ -47,8 +47,7 @@ func Parse(raw []byte) (msg Message, err error) {
}
sp[0] = sp[0][1:]
- source := parseSource(sp[0])
- msg.Source = &source
+ msg.Source = parseSource(sp[0])
if len(sp) < 2 {
err = ErrMalformedMsg