diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index fb6fe7840eb4cdd8d0af4d136c5d6e85c005dcf1..b010bf5d8a591b6e3ca3e5a8fc6f2ca9741f80ae 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -529,6 +529,15 @@ module SGXbwmsgsv2 end iq '/iq/ns:query', ns: 'http://jabber.org/protocol/disco#info' do |i| + # TODO: return error if i.type is :set - if it is :reply or + # :error it should be ignored (as the below does currently); + # review specification to see how to handle other type values + if i.type != :get + puts 'DISCO iq rcvd, of non-get type "' + i.type.to_s + + '" for message "' + i.inspect + '"; ignoring...' + next + end + # respond to capabilities request for an sgx-bwmsgsv2 number JID if i.to.node # TODO: confirm the node URL is expected using below