[NO GBP] Add some istype guards to the PDA messenger's get_messengers proc (#78070)

## About The Pull Request

Read title, not having these checks can knock out the messenger for
everyone for the entire round
## Why It's Good For The Game

I didn't think about hard deletes in my original NT Messenger PR, and as
far as I know this hasn't happened on this codebase yet.
However this PR doesn't only help downstreams that struggle with hard
deletes, it also implements some pretty critical guards as not having a
messenger for an entire round is pretty bad and sometimes hard deletes
are very hard to track and fix, so it could potentially break the
messenger for a lot of rounds.
This commit is contained in:
distributivgesetz
2023-09-02 19:25:10 +02:00
committed by GitHub
parent 3cfb4b461a
commit 1837a5f393
@@ -91,6 +91,8 @@
for(var/messenger_ref in messengers_sorted)
var/datum/computer_file/program/messenger/messenger = messengers_sorted[messenger_ref]
if(!istype(messenger) || !istype(messenger.computer))
continue
if(messenger == src || messenger.invisible)
continue