roster.go
changeset 42 f6bb47ca12f2
parent 39 4a06f7ccfa84
child 46 4a4530b8f622
equal deleted inserted replaced
41:c8c9e6a7e6c9 42:f6bb47ca12f2
    41 	f := func(st Stanza) bool {
    41 	f := func(st Stanza) bool {
    42 		if iq.Type == "error" {
    42 		if iq.Type == "error" {
    43 			ch <- iq.Error
    43 			ch <- iq.Error
    44 			return false
    44 			return false
    45 		}
    45 		}
    46 		rq, ok := st.XNested().(*RosterQuery)
    46 		rq, ok := st.GetNested().(*RosterQuery)
    47 		if !ok {
    47 		if !ok {
    48 			ch <- os.NewError(fmt.Sprintf(
    48 			ch <- os.NewError(fmt.Sprintf(
    49 				"Roster query result not query: %v", st))
    49 				"Roster query result not query: %v", st))
    50 			return false
    50 			return false
    51 		}
    51 		}