summaryrefslogtreecommitdiff
path: root/xmpp/streams.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/streams.go')
-rw-r--r--xmpp/streams.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/xmpp/streams.go b/xmpp/streams.go
index 9c90554..cc83934 100644
--- a/xmpp/streams.go
+++ b/xmpp/streams.go
@@ -65,11 +65,9 @@ func iqHandler(s *session, e []xml.Token) {
}
type streamFeatures struct {
- Mechanisms struct {
- Items []struct {
- Type string `xml:",innerxml"`
- } `xml:"mechanism"`
- } `xml:"mechanisms"`
+ Mechanisms []struct {
+ Type string `xml:",chardata"`
+ } `xml:"mechanisms>mechanism"`
}
func streamFeaturesHandler(s *xml.StartElement, d *xml.Decoder, c chan<- any) {