mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 07:39:13 +01:00
Merge pull request #12005 from Very-Soft/coolcapturecrystals
Makes your balls better
This commit is contained in:
@@ -66,8 +66,11 @@
|
||||
AI.set_stance(STANCE_IDLE)
|
||||
to_chat(M, span("notice", "\The [bound_mob] is now [AI.hostile ? "hostile" : "passive"]."))
|
||||
else if(bound_mob.client)
|
||||
var/transmit_msg
|
||||
transmit_msg = sanitizeSafe(input(usr, "What is your command?", "Command", null) as text, MAX_NAME_LEN)
|
||||
var/transmit_msg = tgui_input_text(usr, "What is your command?", "Command")
|
||||
if(length(transmit_msg) >= MAX_MESSAGE_LEN)
|
||||
to_chat(M, "<span class='danger'>Your message was TOO LONG!:[transmit_msg]</span>")
|
||||
return
|
||||
transmit_msg = sanitize(transmit_msg, max_length = MAX_MESSAGE_LEN)
|
||||
if(isnull(transmit_msg))
|
||||
to_chat(M, "<span class='notice'>You decided against it.</span>")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user