From cf650fcaac33af2c60af3880f9b28358e30d75a4 Mon Sep 17 00:00:00 2001 From: Dmitry Kostenko Date: Fri, 1 Apr 2022 01:01:44 +0200 Subject: [PATCH] Avoid negation of comparison operator (luacheck warning) --- builtin/game/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua index b73e32876..493bb92c0 100644 --- a/builtin/game/chat.lua +++ b/builtin/game/chat.lua @@ -1282,7 +1282,7 @@ local function handle_kill_command(killer, victim) return false, S("@1 is already dead.", victim) end end - if not killer == victim then + if killer ~= victim then core.log("action", string.format("%s killed %s", killer, victim)) end -- Kill victim