Skip to content

Commit

Permalink
stops not being signed into byond from being a major pita during deve…
Browse files Browse the repository at this point in the history
…lopment
  • Loading branch information
harryob committed Aug 16, 2023
1 parent d6a523e commit 2112337
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions code/controllers/configuration/entries/general.dm
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,5 @@ This maintains a list of ip addresses that are able to bypass topic filtering.
/datum/config_entry/string/instance_name
config_entry_value = "game"
protection = CONFIG_ENTRY_HIDDEN|CONFIG_ENTRY_LOCKED

/datum/config_entry/flag/guest_ban
2 changes: 1 addition & 1 deletion code/modules/admin/IsBanned.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
return //don't recheck connected clients.

//Guest Checking
if(IsGuestKey(key))
if(!real_bans_only && CONFIG_GET(flag/guest_ban) && IsGuestKey(key))
log_access("Failed Login: [key] - Guests not allowed")
message_admins("Failed Login: [key] - Guests not allowed")
return list("reason"="guest", "desc"="\nReason: Guests not allowed. Please sign in with a byond account.")
Expand Down
5 changes: 0 additions & 5 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,6 @@ GLOBAL_LIST_INIT(whitelisted_client_procs, list(
if(!(connection in list("seeker", "web"))) //Invalid connection type.
return null

if(IsGuestKey(key))
alert(src,"This server doesn't allow guest accounts to play. Please go to http://www.byond.com/ and register for a key.","Guest","OK")
qdel(src)
return

GLOB.clients += src
GLOB.directory[ckey] = src

Expand Down

0 comments on commit 2112337

Please sign in to comment.