mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[s] Added a check to make sure you can see the think you clicked on (#12492)
* Added a check to make sure you can see the think you clicked on * Upgraded to ban for now, may need to rework ban code to not runtime * Static typing
This commit is contained in:
@@ -928,6 +928,13 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
var/ab = FALSE
|
||||
var/list/L = params2list(params)
|
||||
|
||||
if(object.invisibility > src.mob.see_invisible)
|
||||
message_admins("[ADMIN_LOOKUPFLW(src)] Has clicked an invisible atom, and is likely hacking.")
|
||||
log_game("[key_name(src)] is using a hacked client to see invisible things")
|
||||
var/datum/admins/yogbotdatum = GLOB.admin_datums["yogstation13bot"]
|
||||
yogbotdatum.create_ban(src.ckey, FALSE, "", TRUE, "", TRUE, FALSE, null, null, "Round [GLOB.round_id]: Hacking, clicked on invisible atom.", list())
|
||||
qdel(src)
|
||||
|
||||
var/dragged = L["drag"]
|
||||
if(dragged && !L[dragged])
|
||||
return
|
||||
@@ -1128,4 +1135,4 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
if(statbrowser_ready)
|
||||
return
|
||||
to_chat(src, span_userdanger("Statpanel failed to load, click <a href='?src=[REF(src)];reload_statbrowser=1'>here</a> to reload the panel "))
|
||||
tgui_panel.initialize()
|
||||
tgui_panel.initialize()
|
||||
|
||||
Reference in New Issue
Block a user