Change summary
sgx-bwmsgsv2.rb | 20 +++++---------------
1 file changed, 5 insertions(+), 15 deletions(-)
Detailed changes
@@ -785,21 +785,11 @@ module SGXbwmsgsv2
}.catch(&method(:panic))
end
- iq :get? do |i|
- write_to_stream(error_msg(
- i.reply,
- i.children,
- 'cancel',
- 'feature-not-implemented'
- ))
- end
-
- iq :set? do |i|
- write_to_stream(error_msg(
- i.reply,
- i.children,
- 'cancel',
- 'feature-not-implemented'
+ iq type: [:get, :set] do |iq|
+ write_to_stream(Blather::StanzaError.new(
+ iq,
+ 'feature-not-implemented',
+ :cancel
))
end
end