diff --git a/sgx_jmp.rb b/sgx_jmp.rb index cac58e282e94ad61aa85433d600e3401d63ee08f..fc3407c5e73b63c2e2c8ff6866f1323c3e107675 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -666,6 +666,15 @@ Command.new( end }.register(self).then(&CommandList.method(:register)) +def reply_with_note(iq, text, type: :info) + reply = iq.reply + reply.status = :completed + reply.note_type = type + reply.note_text = text + + self << reply +end + command :execute?, node: "web-register" do |iq| StatsD.increment("command", tags: ["node:#{iq.node}"])