mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
Implements UIDs and initial topic integration
This commit is contained in:
@@ -29,6 +29,15 @@
|
||||
if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
|
||||
return
|
||||
|
||||
// src should always be a UID; if it isn't, warn instead of failing entirely
|
||||
if(href_list["src"])
|
||||
hsrc = locateUID(href_list["src"])
|
||||
if(!hsrc)
|
||||
hsrc = locate(href_list["src"])
|
||||
if(hsrc)
|
||||
var/hsrc_info = datum_info_line(hsrc) || "[hsrc]"
|
||||
log_runtime(EXCEPTION("Got \\ref-based src in topic from [src] for [hsrc_info], should be UID: [href]"))
|
||||
|
||||
#if defined(TOPIC_DEBUGGING)
|
||||
to_chat(world, "[src]'s Topic: [href] destined for [hsrc].")
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user