Merge pull request #36693 from kevinz000/patch-471

Slightly bandaid fix for ntnet json/xorencrypt runtimes
This commit is contained in:
oranges
2018-04-11 22:01:12 +12:00
committed by CitadelStationBot
parent 4063781baf
commit f01620acef
+3 -1
View File
@@ -14,7 +14,9 @@
/datum/netdata/proc/pre_send(datum/component/ntnet_interface/interface)
// Decrypt the passkey.
if(encrypted_passkey && !passkey)
passkey = json_decode(XorEncrypt(hextostr(encrypted_passkey, TRUE), SScircuit.cipherkey))
var/result = XorEncrypt(hextostr(encrypted_passkey, TRUE), SScircuit.cipherkey)
if(length(result) > 1)
passkey = json_decode(XorEncrypt(hextostr(encrypted_passkey, TRUE), SScircuit.cipherkey))
// Encrypt the passkey.
if(!encrypted_passkey && passkey)