diff --git a/agi.go b/agi.go index 80e41ea..da54e0c 100644 --- a/agi.go +++ b/agi.go @@ -131,11 +131,13 @@ func NewWithEAGI(r io.Reader, w io.Writer, eagi io.Reader) *AGI { if s.Text() == "" { break } + terms := strings.Split(s.Text(), ":") if len(terms) == 2 { a.Variables[strings.TrimSpace(terms[0])] = strings.TrimSpace(terms[1]) } } + return &a }