Implements UIDs and initial topic integration

This commit is contained in:
Krausus
2016-09-05 22:33:10 -04:00
parent 0ce93c9706
commit aefb664a58
3 changed files with 56 additions and 0 deletions
+9
View File
@@ -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