mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-24 21:21:56 +00:00
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
This commit is contained in:
parent
5aeb70d179
commit
b4a6bcbb16
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue