From cb499f1a6cbca5faa142cfdd6bde9be33deec0a6 Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Thu, 28 May 2020 10:26:24 +0200 Subject: [PATCH] log_admins -> log_afk_action --- code/controllers/subsystem/afk.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/controllers/subsystem/afk.dm b/code/controllers/subsystem/afk.dm index 5fbc37e41b9..81a4e4cb3d9 100644 --- a/code/controllers/subsystem/afk.dm +++ b/code/controllers/subsystem/afk.dm @@ -50,14 +50,14 @@ SUBSYSTEM_DEF(afk) if(A.fast_despawn) toRemove += H.ckey warn(H, "You are have been despawned after being AFK for [mins_afk] minutes. You have been despawned instantly due to you being in a secure area.") - log_admins(H, mins_afk, T, "despawned", "AFK in a fast despawn area") + log_afk_action(H, mins_afk, T, "despawned", "AFK in a fast despawn area") force_cryo_human(H) else if(!(H.mind.special_role in non_cryo_antags)) if(cryo_ssd(H)) H.create_log(MISC_LOG, "Put into cryostorage by the AFK subsystem") afk_players[H.ckey] = AFK_CRYOD - log_admins(H, mins_afk, T, "put into cryostorage") + log_afk_action(H, mins_afk, T, "put into cryostorage") warn(H, "You are AFK for [mins_afk] minutes and have been moved to cryostorage. \ After being AFK for another [config.auto_despawn_afk] minutes you will be fully despawned. \ Please eject yourself (right click, eject) out of the cryostorage if you want to avoid being despawned.") @@ -66,7 +66,7 @@ SUBSYSTEM_DEF(afk) afk_players[H.ckey] = AFK_ADMINS_WARNED else if(afk_players[H.ckey] != AFK_ADMINS_WARNED && mins_afk >= config.auto_despawn_afk) - log_admins(H, mins_afk, T, "despawned") + log_afk_action(H, mins_afk, T, "despawned") warn(H, "You are have been despawned after being AFK for [mins_afk] minutes.") toRemove += H.ckey force_cryo_human(H) @@ -79,7 +79,7 @@ SUBSYSTEM_DEF(afk) if(H.client) window_flash(H.client) -/datum/controller/subsystem/afk/proc/log_admins(mob/living/carbon/human/H, mins_afk, turf/location, action, info) +/datum/controller/subsystem/afk/proc/log_afk_action(mob/living/carbon/human/H, mins_afk, turf/location, action, info) log_admin("[key_name(H)] has been [action] by the AFK Watcher subsystem after being AFK for [mins_afk] minutes.[info ? " Extra info:" + info : ""]") /datum/controller/subsystem/afk/proc/removeFromWatchList(list/toRemove)