From 4594806b2359db67ac484adab9bd0d3914c364cd Mon Sep 17 00:00:00 2001 From: Francinum <5572280+francinum@users.noreply.github.com> Date: Sun, 30 Jul 2023 17:51:47 -0400 Subject: [PATCH] Fixes a petulent little runtime --- .../file_system/programs/ntmessenger.dm | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/code/modules/modular_computers/file_system/programs/ntmessenger.dm b/code/modules/modular_computers/file_system/programs/ntmessenger.dm index 20ca687a749a..f87830068acd 100644 --- a/code/modules/modular_computers/file_system/programs/ntmessenger.dm +++ b/code/modules/modular_computers/file_system/programs/ntmessenger.dm @@ -351,17 +351,10 @@ if (ringer_status) - if(!computer) - message_admins("Messenger Program exists with no computer, [ADMIN_VV(src)]"); - var/message = "Messenger Program with no computer." - if(QDELETED(src)) - message += " \[Messenger is qdeleted!\]" - if(QDELETED(holder)) - if(isnull(holder)) - message += " \[Messenger is not in a harddrive!\]" - else - message += " \[Messenger harddrive is qdeleting!\]" - CRASH(message) + if(!holder.holder) + return //We aren't actually in a computer, SSpackets might have gotten severely gummed up or smth. + //otherwise, fix the computer var and run. + computer = holder.holder computer.ring(ringtone) /datum/computer_file/program/messenger/Topic(href, href_list)