Semi Port - Add Wine/Linux users CID to an ignore list (#96484)

## About The Pull Request

This PR attempts to somewhat port
https://github.com/cmss13-devs/cmss13/pull/11252
In order to add Wine/Linux CID into an ignore list to stop the
`Your ComputerID has already logged in with another key this round,
please log out of this one NOW or risk being banned!`
Jumpscare message from appearing and log users which connect with
ignored CID's to admins properly.

### Testing the Pull Reuqest
I've attempted to test the PR locally, but I have been unable to
replicate the duplicated CID message, so this might need to be **test
merged** if approved.

In addition, please review the code, my experience with Byond is very
limited so feel free to edit, commit, or requested changes per need.

## Why It's Good For The Game
If two players with the same CID (such as the case with players who play
using Wine), the joining players will get a pop-up saying they are using
the same CID and get a **scary** message that they risk getting banned
for multiboxing if they don't log off.

Experienced game staff, most of the time already know to ignore the CID
`4055623708` which is often thrown by Wine.

However, players could abuse this fact to still and try to multibox for
whatever reason, and even if a legit Linux player uses this CID, giving
the admins a separate log for it is useful, to be distinct from normal
multibox messages.
`MULTIKEYING: [key_name(src)] Connecting player joined with IGNORED CID
[computer_id].`

## Changelog
🆑 Richard Blonski
admin: Added Ignored CIDs, a message will appear when a player joins
with an Ignored CID.
/🆑
This commit is contained in:
Richard Blonski
2026-07-02 06:34:52 +02:00
committed by GitHub
parent 32a6e89195
commit c656ba9945
4 changed files with 25 additions and 1 deletions
+8
View File
@@ -435,7 +435,15 @@ GLOBAL_LIST_INIT(unrecommended_builds, list(
tgui_say.initialize()
if(alert_mob_dupe_login && !holder)
// Notify admins if the connecting player's CID is configured to be ignored by stickybans
if (SSstickyban && (computer_id in SSstickyban.ignored_cids))
message_admins("<B>MULTIKEYING: </B></span><span class='notice'>[key_name_admin(src)] Connecting player joined with IGNORED CID [computer_id].")
log_admin_private("MULTIKEYING: [key_name(src)] Connecting player joined with IGNORED CID [computer_id].")
return
// If the CID is not ignored, notify the player with the pop-up.
var/dupe_login_message = "Your ComputerID has already logged in with another key this round, please log out of this one NOW or risk being banned!"
// Notify admins if the connecting player's CID is a duplicate of another player's CID
if (alert_admin_multikey)
dupe_login_message += "\nAdmins have been informed."
message_admins(span_danger("<B>MULTIKEYING: </B></span><span class='notice'>[key_name_admin(src)] has a matching CID+IP with another player and is clearly multikeying. They have been warned to leave the server or risk getting banned."))