xmpp.go
changeset 116 5c6d6d51d3ba
parent 113 bee6cc131798
child 118 fb9bb98a8d70
--- a/xmpp.go	Fri Dec 28 17:56:13 2012 -0700
+++ b/xmpp.go	Tue Mar 26 10:54:44 2013 -0600
@@ -188,7 +188,7 @@
 }
 
 func startXmlReader(r io.Reader,
-extStanza map[string]func(*xml.Name) interface{}) <-chan interface{} {
+	extStanza map[string]func(*xml.Name) interface{}) <-chan interface{} {
 	ch := make(chan interface{})
 	go readXml(r, ch, extStanza)
 	return ch
@@ -269,8 +269,7 @@
 func (cl *Client) StartSession(getRoster bool, pr *Presence) error {
 	id := <-Id
 	iq := &Iq{Header: Header{To: cl.Jid.Domain, Id: id, Type: "set",
-		Nested: []interface{}{Generic{XMLName:
-			xml.Name{Space: NsSession, Local: "session"}}}}}
+		Nested: []interface{}{Generic{XMLName: xml.Name{Space: NsSession, Local: "session"}}}}}
 	ch := make(chan error)
 	f := func(st Stanza) bool {
 		iq, ok := st.(*Iq)