mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
Gyrotron sanitization
This commit is contained in:
@@ -53,7 +53,8 @@ GLOBAL_LIST_EMPTY(gyrotrons)
|
||||
|
||||
/obj/machinery/power/emitter/gyrotron/attackby(var/obj/item/W, var/mob/user)
|
||||
if(istype(W, /obj/item/device/multitool))
|
||||
var/new_ident = tgui_input_text(usr, "Enter a new ident tag.", "Gyrotron", id_tag)
|
||||
var/new_ident = tgui_input_text(usr, "Enter a new ident tag.", "Gyrotron", id_tag, MAX_NAME_LEN)
|
||||
new_ident = sanitize(new_ident,MAX_NAME_LEN)
|
||||
if(new_ident && user.Adjacent(src))
|
||||
id_tag = new_ident
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user