From 24bf21e6d0fcf41b270b91ff02eacb896aefa258 Mon Sep 17 00:00:00 2001 From: Farie82 Date: Wed, 19 Jan 2022 19:02:52 +0100 Subject: [PATCH] PP screen bans now creates notes again (#17347) --- code/modules/admin/topic.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index d60fc9c658c..45af82991a3 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -911,6 +911,7 @@ to_chat(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") to_chat(M, "This is a temporary ban, it will be removed in [mins] minutes.") DB_ban_record(BANTYPE_TEMP, M, mins, reason) + add_note(M.ckey, "Banned for [mins] minutes - [reason]", null, usr.ckey, FALSE) if(M.client) M.client.link_forum_account(TRUE) if(GLOB.configuration.url.banappeals_url) @@ -936,6 +937,7 @@ log_admin("[key_name(usr)] has banned [M.ckey].\nReason: [reason]\nThis ban does not expire automatically and must be appealed.") message_admins("[key_name_admin(usr)] has banned [M.ckey].\nReason: [reason]\nThis ban does not expire automatically and must be appealed.") DB_ban_record(BANTYPE_PERMA, M, -1, reason) + add_note(M.ckey, "Permanently banned - [reason]", null, usr.ckey, FALSE) qdel(M.client) if("Cancel")