summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 14:06:36 +0200
committerxengineering <me@xengineering.eu>2023-07-04 14:06:36 +0200
commit1d3dfa5b93000bc4109ba49ea018e72fbf4f5753 (patch)
tree64e68c22b80c44062aa981cbe5a07d24704867ab
parent3826f3ee7850590142fe51747447dffece332762 (diff)
downloadlimox-1d3dfa5b93000bc4109ba49ea018e72fbf4f5753.tar
limox-1d3dfa5b93000bc4109ba49ea018e72fbf4f5753.tar.zst
limox-1d3dfa5b93000bc4109ba49ea018e72fbf4f5753.zip
Further reduce complexity of streamFeatures struct
-rw-r--r--xmpp/streams.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmpp/streams.go b/xmpp/streams.go
index b55b6f0..b7cde3e 100644
--- a/xmpp/streams.go
+++ b/xmpp/streams.go
@@ -65,9 +65,7 @@ func iqHandler(s *session, e []xml.Token) {
}
type streamFeatures struct {
- Mechanisms []struct {
- Type string `xml:",chardata"`
- } `xml:"mechanisms>mechanism"`
+ SaslMechanisms []string `xml:"mechanisms>mechanism"`
}
func streamFeaturesHandler(s *xml.StartElement, d *xml.Decoder, c chan<- any) {