From b4a6bcbb1632d3044120e0327ff4223976a8263f Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Tue, 12 Feb 2019 16:35:39 +0100 Subject: [PATCH] Simplified GUID check to catch other non-existing GUIDs as well * removed PunkBuster instructions as well, ET: Legacy clients don't support this any more --- luascripts/wolfadmin/admin/admin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luascripts/wolfadmin/admin/admin.lua b/luascripts/wolfadmin/admin/admin.lua index dab9025..db57963 100644 --- a/luascripts/wolfadmin/admin/admin.lua +++ b/luascripts/wolfadmin/admin/admin.lua @@ -45,8 +45,8 @@ function admin.onClientConnectAttempt(clientId, firstTime, isBot) if firstTime and db.isConnected() then local guid = et.Info_ValueForKey(et.trap_GetUserinfo(clientId), "cl_guid") - if guid == "" or guid == "NO_GUID" or guid == "unknown" then - return "\n\nIt appears you do not have a ^7GUID^9/^7etkey^9. In order to play on this server, enable ^7PunkBuster ^9(use ^7\\pb_cl_enable^9) ^9and/or create an ^7etkey^9.\n\nMore info: ^7www.etkey.org" + if string.len(guid) < 32 then + return "\n\nIt appears you do not have a ^7GUID^9/^7etkey^9. In order to play on this server, create an ^7etkey^9.\n\nMore info: ^7www.etkey.org" end if settings.get("g_standalone") ~= 0 then