mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
literally just hook asay into tgui say (#73212)
## About The Pull Request pressing f3 now opens asay in tgui say ## Why It's Good For The Game  also fixes double-escaped special characters caused by #72407 and finally gets rid of the gross regular tgui input popup ## Changelog 🆑 fix: asays are no longer double-escaped admin: asay now uses tgui say /🆑 --------- Co-authored-by: Scriptis <scriptis@duck.com>
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
if(!payload?["channel"])
|
||||
CRASH("No channel provided to an open TGUI-Say")
|
||||
window_open = TRUE
|
||||
if(payload["channel"] != OOC_CHANNEL)
|
||||
if(payload["channel"] != OOC_CHANNEL && payload["channel"] != ADMIN_CHANNEL)
|
||||
start_thinking()
|
||||
if(client.typing_indicators)
|
||||
log_speech_indicators("[key_name(client)] started typing at [loc_name(client.mob)], indicators enabled.")
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
if(OOC_CHANNEL)
|
||||
client.ooc(entry)
|
||||
return TRUE
|
||||
if(ADMIN_CHANNEL)
|
||||
client.cmd_admin_say(entry)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user