Added extra condition for empty GUIDs

This commit is contained in:
Timo Smit 2017-03-14 17:32:50 +01:00
parent 0a230d592d
commit 16891a37c8

View file

@ -47,7 +47,7 @@ function admin.onconnectattempt(clientId, firstTime, isBot)
if firstTime then
local guid = et.Info_ValueForKey(et.trap_GetUserinfo(clientId), "cl_guid")
if guid == "NO_GUID" or guid == "unknown" then
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"
end