Do not send node attribute in query tag in DiscoInfo()

This commit is contained in:
eleksir
2023-06-24 16:44:33 +03:00
parent 5a1c0b9e09
commit e096bfe29f

View File

@@ -23,8 +23,8 @@ func (c *Client) DiscoverNodeInfo(node string) (string, error) {
}
// Discover information about given item from given jid.
func (c *Client) DiscoverInfo(from string, to string, node string) (string, error) {
query := fmt.Sprintf("<query xmlns='%s' node='%s'/>", XMPPNS_DISCO_INFO, node)
func (c *Client) DiscoverInfo(from string, to string) (string, error) {
query := fmt.Sprintf("<query xmlns='%s'/>", XMPPNS_DISCO_INFO)
return c.RawInformation(from, to, "info3", IQTypeGet, query)
}