structs.go
changeset 121 ebb86cbdd218
parent 119 712aa5780660
equal deleted inserted replaced
120:9d7e8333948b 121:ebb86cbdd218
   267 		return "unreadable error"
   267 		return "unreadable error"
   268 	}
   268 	}
   269 	return string(buf)
   269 	return string(buf)
   270 }
   270 }
   271 
   271 
   272 var bindExt Extension = Extension{StanzaHandlers: map[string]func(*xml.Name) interface{}{NsBind: newBind},
   272 var bindExt Extension = Extension{StanzaHandlers: map[string]func(*xml.Name) interface{}{NsBind: newBind}}
   273 	Start: func(cl *Client) {}}
       
   274 
   273 
   275 func newBind(name *xml.Name) interface{} {
   274 func newBind(name *xml.Name) interface{} {
   276 	return &bindIq{}
   275 	return &bindIq{}
   277 }
   276 }