diff -r 6d4f43f7dc19 -r 16513974d273 xmpp.go --- a/xmpp.go Sat Jan 07 21:20:23 2012 -0700 +++ b/xmpp.go Sat Jan 07 22:22:18 2012 -0700 @@ -301,9 +301,9 @@ // Presence struct. See RFC 3921, Section 3. func (cl *Client) StartSession(getRoster bool, pr *Presence) os.Error { id := <- Id - iq := &Iq{To: cl.Jid.Domain, Id: id, Type: "set", Any: - &Generic{XMLName: xml.Name{Space: NsSession, Local: - "session"}}} + iq := &Iq{To: cl.Jid.Domain, Id: id, Type: "set", Nested: + []interface{}{ Generic{XMLName: xml.Name{Space: + NsSession, Local: "session"}}}} ch := make(chan os.Error) f := func(st Stanza) bool { if st.GetType() == "error" {