PP screen bans now creates notes again (#17347)

This commit is contained in:
Farie82
2022-01-19 19:02:52 +01:00
committed by GitHub
parent a0e5d6df44
commit 24bf21e6d0
+2
View File
@@ -911,6 +911,7 @@
to_chat(M, "<span class='warning'><big><b>You have been banned by [usr.client.ckey].\nReason: [reason].</b></big></span>")
to_chat(M, "<span class='warning'>This is a temporary ban, it will be removed in [mins] minutes.</span>")
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("<span class='notice'>[key_name_admin(usr)] has banned [M.ckey].\nReason: [reason]\nThis ban does not expire automatically and must be appealed.</span>")
DB_ban_record(BANTYPE_PERMA, M, -1, reason)
add_note(M.ckey, "Permanently banned - [reason]", null, usr.ckey, FALSE)
qdel(M.client)
if("Cancel")