From 9bf96adac3fd92646101aaab90eca93389121574 Mon Sep 17 00:00:00 2001 From: Maik Wild Date: Thu, 28 Dec 2017 23:03:50 +0100 Subject: [PATCH] made allowed_to_nuke not accept strings --- nuke_control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuke_control.lua b/nuke_control.lua index b1c56a9f..41b30a00 100644 --- a/nuke_control.lua +++ b/nuke_control.lua @@ -3,7 +3,7 @@ function allowed_to_nuke(player) if type(player) == "table" then return player.admin or is_mod(player.name) or is_regular(player.name) or ((player.online_time / 216000) > global.scenario.config.nuke_min_time_hours) - elseif type(player) == "number" or type(player) == string then + elseif type(player) == "number" then return allowed_to_nuke(game.players[player]) end end