Fixes #11931 + Design bug

- NTNRC conversations are now rather matched by Unique ID that's assigned on New(), rather than name. This has a nice side effect of being able to have conversations that share names.
- Tweaks design datums a bit. Renames "processor unit" to "computer processor unit", etc. since i noticed telecomms machine already uses "processor unit" name. Also corrects duplicated ID.
This commit is contained in:
Atlantis
2016-01-08 01:55:56 +01:00
parent 265c0d2567
commit 409a832646
4 changed files with 14 additions and 9 deletions

View File

@@ -32,8 +32,7 @@
if(href_list["PRG_joinchannel"])
var/datum/ntnet_conversation/C
for(var/datum/ntnet_conversation/chan in ntnet_global.chat_channels)
world << "DEBUG L35/NTNRC_CLIENT.DM: \"[href_list["PRG_joinchannel"]]\" / \"[chan.title]\""
if(chan.title == href_list["PRG_joinchannel"])
if(chan.id == text2num(href_list["PRG_joinchannel"]))
C = chan
break
@@ -205,7 +204,8 @@
for(var/datum/ntnet_conversation/conv in ntnet_global.chat_channels)
if(conv && conv.title)
all_channels.Add(list(list(
"chan" = conv.title
"chan" = conv.title,
"id" = conv.id
)))
data["all_channels"] = all_channels