Skip to content

Commit

Permalink
log disconnects too for a more helpful picture
Browse files Browse the repository at this point in the history
  • Loading branch information
craftxbox committed Sep 30, 2024
1 parent e073c01 commit 1eadd53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
GLOB.clients -= src
GLOB.directory -= ckey
log_access("Logout: [key_name(src)]")
if(CONFIG_GET(string/chat_log_disconnects))
send2chat("[key_name(src)] has disconnected", CONFIG_GET(string/chat_log_disconnects))
GLOB.ahelp_tickets.client_logout(src)
GLOB.interviews.client_logout(src)
GLOB.requests.client_logout(src)
Expand Down Expand Up @@ -784,7 +786,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(

if (!cidcheck_failedckeys[ckey])
message_admins("<span class='adminnotice'>[key_name(src)] has been detected as using a cid randomizer. Connection rejected.</span>")
send2tgs_adminless_only("CidRandomizer", "[key_name(src)] has been detected as using a cid randomizer. Connection rejected.")
send2tgs("CidRandomizer", "[key_name(src)] has been detected as using a cid randomizer. Connection rejected.")
cidcheck_failedckeys[ckey] = TRUE
note_randomizer_user()

Expand All @@ -795,7 +797,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
else
if (cidcheck_failedckeys[ckey])
message_admins("<span class='adminnotice'>[key_name_admin(src)] has been allowed to connect after showing they removed their cid randomizer</span>")
send2tgs_adminless_only("CidRandomizer", "[key_name(src)] has been allowed to connect after showing they removed their cid randomizer.")
send2tgs("CidRandomizer", "[key_name(src)] has been allowed to connect after showing they removed their cid randomizer.")
cidcheck_failedckeys -= ckey
if (cidcheck_spoofckeys[ckey])
message_admins("<span class='adminnotice'>[key_name_admin(src)] has been allowed to connect after appearing to have attempted to spoof a cid randomizer check because it <i>appears</i> they aren't spoofing one this time</span>")
Expand Down

0 comments on commit 1eadd53

Please sign in to comment.