xmpp/xmpp.go
changeset 180 3010996c1928
parent 178 ccfebbd9f49b
child 185 ba8a4ae40e13
--- a/xmpp/xmpp.go	Sat Nov 09 12:22:01 2013 -0700
+++ b/xmpp/xmpp.go	Sat Nov 09 12:33:25 2013 -0700
@@ -224,7 +224,7 @@
 
 	// Initialize the session.
 	id := NextId()
-	iq := &Iq{Header: Header{To: cl.Jid.Domain(), Id: id, Type: "set",
+	iq := &Iq{Header: Header{To: JID(cl.Jid.Domain()), Id: id, Type: "set",
 		Nested: []interface{}{Generic{XMLName: xml.Name{Space: NsSession, Local: "session"}}}}}
 	ch := make(chan error)
 	f := func(st Stanza) {