Merge pull request #9006 from Kyep/login_logout_attack_log

Adds login/logout to attack logs
This commit is contained in:
tigercat2000
2018-06-13 13:30:41 -07:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@
lastKnownIP = client.address
computer_id = client.computer_id
log_access_in(client)
create_attack_log("<font color='red'>Logged in at [atom_loc_line(get_turf(src))]</font>")
if(config.log_access)
for(var/mob/M in player_list)
if(M == src) continue
+1
View File
@@ -3,6 +3,7 @@
unset_machine()
player_list -= src
log_access_out(src)
create_attack_log("<font color='red'>Logged out at [atom_loc_line(get_turf(src))]</font>")
// `holder` is nil'd out by now, so we check the `admin_datums` array directly
//Only report this stuff if we are currently playing.
if(admin_datums[ckey] && ticker && ticker.current_state == GAME_STATE_PLAYING)