mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes ban logging issue. (#40457)
* Fixes some ban logging issue. * This too
This commit is contained in:
@@ -1322,8 +1322,8 @@
|
|||||||
to_chat(M, "<span class='danger'>To try to resolve this matter head to [bran]</span>")
|
to_chat(M, "<span class='danger'>To try to resolve this matter head to [bran]</span>")
|
||||||
else
|
else
|
||||||
to_chat(M, "<span class='danger'>No ban appeals URL has been set.</span>")
|
to_chat(M, "<span class='danger'>No ban appeals URL has been set.</span>")
|
||||||
log_admin_private("[key_name(usr)] has banned [key_name(M)].\nReason: [key_name(M)]\nThis will be removed in [mins] minutes.")
|
log_admin_private("[key_name(usr)] has banned [key_name(M)]. - Reason: [key_name(M)] - This will be removed in [mins] minutes.")
|
||||||
var/msg = "<span class='adminnotice'>[key_name_admin(usr)] has banned [key_name_admin(M)].\nReason: [reason]\nThis will be removed in [mins] minutes.</span>"
|
var/msg = "<span class='adminnotice'>[key_name_admin(usr)] has banned [key_name_admin(M)]. - Reason: [reason] - This will be removed in [mins] minutes.</span>"
|
||||||
message_admins(msg)
|
message_admins(msg)
|
||||||
var/datum/admin_help/AH = M.client ? M.client.current_ticket : null
|
var/datum/admin_help/AH = M.client ? M.client.current_ticket : null
|
||||||
if(AH)
|
if(AH)
|
||||||
@@ -1351,8 +1351,8 @@
|
|||||||
to_chat(usr, "<span class='danger'>Failed to apply ban.</span>")
|
to_chat(usr, "<span class='danger'>Failed to apply ban.</span>")
|
||||||
return
|
return
|
||||||
ban_unban_log_save("[key_name(usr)] has permabanned [key_name(M)]. - Reason: [reason] - This is a permanent ban.")
|
ban_unban_log_save("[key_name(usr)] has permabanned [key_name(M)]. - Reason: [reason] - This is a permanent ban.")
|
||||||
log_admin_private("[key_name(usr)] has banned [key_name(M)].\nReason: [reason]\nThis is a permanent ban.")
|
log_admin_private("[key_name(usr)] has banned [key_name(M)]. - Reason: [reason] - This is a permanent ban.")
|
||||||
var/msg = "<span class='adminnotice'>[key_name_admin(usr)] has banned [key_name_admin(M)].\nReason: [reason]\nThis is a permanent ban.</span>"
|
var/msg = "<span class='adminnotice'>[key_name_admin(usr)] has banned [key_name_admin(M)]. - Reason: [reason] - This is a permanent ban.</span>"
|
||||||
message_admins(msg)
|
message_admins(msg)
|
||||||
var/datum/admin_help/AH = M.client ? M.client.current_ticket : null
|
var/datum/admin_help/AH = M.client ? M.client.current_ticket : null
|
||||||
if(AH)
|
if(AH)
|
||||||
|
|||||||
Reference in New Issue
Block a user