Move example to new data structure

This commit is contained in:
Mickael Remond 2019-06-27 14:35:03 +02:00
parent 20a66dc47d
commit 5db9a80605
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

View File

@ -71,7 +71,7 @@ func discoInfo(c xmpp.Sender, p stanza.Packet, opts xmpp.ComponentOptions) {
Space: stanza.NSDiscoInfo, Space: stanza.NSDiscoInfo,
Local: "query", Local: "query",
}, },
Identity: identity, Identity: []stanza.Identity{identity},
Features: []stanza.Feature{ Features: []stanza.Feature{
{Var: stanza.NSDiscoInfo}, {Var: stanza.NSDiscoInfo},
{Var: stanza.NSDiscoItems}, {Var: stanza.NSDiscoItems},