hotfix

Stephen Paul Weber created

Change summary

lib/command.rb | 4 ++--
sgx_jmp.rb     | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

lib/command.rb 🔗

@@ -152,8 +152,8 @@ class Command
 		@blk = blk
 	end
 
-	def register(blather)
-		blather.command(:execute?, node: @node, sessionid: nil) do |iq|
+	def register(blather, guards: [:execute?, node: @node, sessionid: nil])
+		blather.command(*guards) do |iq|
 			customer_repo = CustomerRepo.new
 			Execution.new(customer_repo, blather, @format_error, iq).execute(&@blk)
 		end

sgx_jmp.rb 🔗

@@ -391,7 +391,7 @@ Command.new(
 		Command.customer.then do |customer|
 			customer.stanza_from(Command.execution.iq)
 		end
-	}.register(self).then(&CommandList.method(:register))
+	}.register(self, guards: [node: node]).then(&CommandList.method(:register))
 end
 
 Command.new(