mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
port ADMIN_VERB and friends (#30646)
* port ADMIN_VERB and friends * some renaming * dumb * one more rename * never search and replace this codebase * fix TM issues, more renaming * add a static analysis to shore up user verbs * fix double message on roundstart * remove macro we're not using yet * convert remaining playsounds verbs * convert more verbs i missed somehow * why is this a completely different signature than everything else * fix ui_interact arg * fix logging view and others * buncha issues caught in TM * fix mentor tickets ui * fix bug report viewing * moron
This commit is contained in:
committed by
GitHub
parent
f89b05ee88
commit
2a842644d5
@@ -1,35 +1,22 @@
|
||||
// Admin verb to debug the DMAPI
|
||||
|
||||
/client/proc/dmapi_debug()
|
||||
set name = "Debug DMAPI"
|
||||
set category = "Debug"
|
||||
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
|
||||
USER_VERB(debug_dmapi, R_DEBUG, "Debug DMAPI", "Dump DMAPI information.", VERB_CATEGORY_DEBUG)
|
||||
if(!world.TgsAvailable())
|
||||
to_chat(src, "DMAPI not connected")
|
||||
to_chat(client, "DMAPI not connected")
|
||||
return
|
||||
|
||||
to_chat(src, "TGS Info")
|
||||
to_chat(src, "Revision: [world.TgsRevision()]")
|
||||
to_chat(src, "Version: [world.TgsVersion()]")
|
||||
to_chat(src, "API Version: [world.TgsApiVersion()]")
|
||||
to_chat(src, "Instance Name: [world.TgsInstanceName()]")
|
||||
to_chat(src, "Testmerges:")
|
||||
to_chat(client, "TGS Info")
|
||||
to_chat(client, "Revision: [world.TgsRevision()]")
|
||||
to_chat(client, "Version: [world.TgsVersion()]")
|
||||
to_chat(client, "API Version: [world.TgsApiVersion()]")
|
||||
to_chat(client, "Instance Name: [world.TgsInstanceName()]")
|
||||
to_chat(client, "Testmerges:")
|
||||
for(var/datum/tgs_revision_information/test_merge/TM as anything in world.TgsTestMerges())
|
||||
to_chat(src, "#[TM.number] | [TM.author] - [TM.title]")
|
||||
to_chat(client, "#[TM.number] | [TM.author] - [TM.title]")
|
||||
|
||||
to_chat(src, "Channel info:")
|
||||
to_chat(client, "Channel info:")
|
||||
for(var/datum/tgs_chat_channel/CC as anything in world.TgsChatChannelInfo())
|
||||
to_chat(src, "I:[CC.id] | FN:[CC.friendly_name] | AC:[CC.is_admin_channel] | PC:[CC.is_private_channel] | CT:[CC.custom_tag]")
|
||||
to_chat(src, "Security level: [world.TgsSecurityLevel()]")
|
||||
to_chat(client, "I:[CC.id] | FN:[CC.friendly_name] | AC:[CC.is_admin_channel] | PC:[CC.is_private_channel] | CT:[CC.custom_tag]")
|
||||
to_chat(client, "Security level: [world.TgsSecurityLevel()]")
|
||||
|
||||
/client/proc/dmapi_log()
|
||||
set name = "DMAPI Log"
|
||||
set category = "Debug"
|
||||
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
|
||||
usr << browse(GLOB.tgs_log.Join("<br>"), "window=dmapi_log")
|
||||
USER_VERB(dmapi_log, R_DEBUG, "DMAPI Log", "Open the DMAPI log.", VERB_CATEGORY_DEBUG)
|
||||
client << browse(GLOB.tgs_log.Join("<br>"), "window=dmapi_log")
|
||||
|
||||
Reference in New Issue
Block a user