Return node in reply to disco#info query

Stephen Paul Weber created

https://xmpp.org/extensions/xep-0030.html#info-nodes requires that *if*
the query includes an optional node, it should be included in the
response.

Change summary

sgx-catapult.rb | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

sgx-catapult.rb 🔗

@@ -663,6 +663,7 @@ module SGXcatapult
 			#puts "XR[node]: #{xpath_result[0]['node']}"
 
 			msg = i.reply
+			msg.node = i.node
 			msg.identities = user_cap_identities
 			msg.features = user_cap_features
 
@@ -673,6 +674,7 @@ module SGXcatapult
 
 		# respond to capabilities request for sgx-catapult itself
 		msg = i.reply
+		msg.node = i.node
 		msg.identities = [{
 			name: 'Soprani.ca Gateway to XMPP - Catapult',
 			type: 'sms', category: 'gateway'