From cc9147730836c7b3d8047fad00662ca13b0b93ea Mon Sep 17 00:00:00 2001 From: Dmitry Kostenko Date: Fri, 1 Apr 2022 01:01:44 +0200 Subject: Avoid negation of comparison operator (luacheck warning) --- builtin/game/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/game') 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 -- cgit v1.2.3