Files
Bubberstation/code/controllers
SkyratBot 3effeb131a [MIRROR] Fixes Mock Clients Leaking Into Production [MDB IGNORE] (#24917)
* Fixes Mock Clients Leaking Into Production (#79640)

Basically, every time we made a new client interface, we would add it to
`GLOB.directory` (new behavior introduced in (#79348
(88bb3afcce)).
This would mean that we would pass in junk mock clients into the vote
processing feature instead of actual legitimate clients, as well as a
slew of unintended consequences elsewhere wherever we access
`GLOB.directory`.

We would create mock clients in stuff like
`randomize_human_appearance()`, which is legitimately used and called in
a slew of places where we want random humans, which allows junk to enter
in directory per the aforementioned point.

Anyways, let's just... not let's add it to the directory if we aren't
running unit tests. I also made the vote processing code a bit more
strict juuuuuuuust in case

* Fixes Mock Clients Leaking Into Production

---------

Co-authored-by: san7890 <the@san7890.com>
2023-11-10 20:27:09 -05:00
..