From 0acbd3318b1eacc72a7f9bacacfeb6225a85da52 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Sat, 31 Jul 2021 01:17:58 -0700 Subject: [PATCH] Fix message for find_unknown_nodes chat command --- chat.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat.lua b/chat.lua index fe45ac0..6db9806 100644 --- a/chat.lua +++ b/chat.lua @@ -447,9 +447,9 @@ core.register_chatcommand(cmd_repo.find_node.cmd, { end end - local msg - if #unknown_nodes > 0 then - msg = S("Found unknown nodes: @1", table.concat(unknown_nodes, ", ")) + local node_count = #unknown_nodes + if node_count > 0 then + msg = S("Found unknown nodes: @1", node_count) .. "\n " .. table.concat(unknown_nodes, ", ") else msg = S("No unknown nodes found.") end