diff options
Diffstat (limited to 'xmpp/iq.go')
-rw-r--r-- | xmpp/iq.go | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -47,13 +47,9 @@ func (s *session) sendBind() { } } -type iqResponse struct { - Jid string `xml:"urn:ietf:params:xml:ns:xmpp-bind bind>jid"` -} - -func handleIqResponse(s *session, i iqResponse) { - if i.Jid != "" { - s.jid = i.Jid +func handleIq(s *session, i iq) { + if i.Bind.Jid != "" { + s.jid = i.Bind.Jid s.sendPresence() return } |