From 3a53e8bcbc6969498af64811791b06b8f77a4fac Mon Sep 17 00:00:00 2001 From: Zve Date: Sat, 30 Mar 2019 21:21:22 +0200 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B5=D1=80=D0=B6=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20here=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D1=82=D0=B8=D0=BA=D0=B5=D1=82=D0=BE=D0=B2=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B2=20=D0=B4=D0=B8=D1=81=D0=BA=D0=BE=D1=80=D0=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/modules/admin/verbs/adminhelp.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index bdc94ef1d48f..1afcf5d4e52a 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -16,6 +16,8 @@ var/global/datum/admin_help_tickets/ahelp_tickets var/obj/effect/statclick/ticket_list/cstatclick = new(null, null, AHELP_CLOSED) var/obj/effect/statclick/ticket_list/rstatclick = new(null, null, AHELP_RESOLVED) + var/last_slap_mention_used = 0 // This acts as cooldown for sending @here to discord. + /datum/admin_help_tickets/Destroy() QDEL_LIST(active_tickets) QDEL_LIST(closed_tickets) @@ -555,4 +557,8 @@ var/global/datum/admin_help_tickets/ahelp_tickets else final = "[msg] - All admins stealthed\[[english_list(stealthmins)]\], AFK\[[english_list(afkmins)]\], or lacks +BAN\[[english_list(powerlessmins)]\]! Total: [allmins.len] " - send2slack_admincall("@here adminhelp from *[source]*:", final) + if(world.time > ahelp_tickets.last_slap_mention_used) + ahelp_tickets.last_slap_mention_used = world.time + 30 MINUTES + send2slack_admincall("@here adminhelp from *[source]*:", final) + else + send2slack_admincall("adminhelp from *[source]*:", final)