From 5d843c03a87a70bc550542507cce80a15a5d5b97 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 6 Oct 2021 21:17:17 -0500 Subject: [PATCH] Hotfix: this was still being used in one place, but got removed --- sgx_jmp.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index cac58e2..fc3407c 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}"]) -- 2.34.5