mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Automatic handling of majorly-colliding CIDs (#17414)
This commit is contained in:
@@ -112,6 +112,12 @@
|
||||
to_chat(usr, "<span class='danger'>You cannot apply this ban type on yourself.</span>")
|
||||
return
|
||||
|
||||
// Check validity of the CID. Some have a lot of collisions due to bad industry practices (thanks walmart)
|
||||
if(computerid && (computerid in GLOB.configuration.admin.common_cid_map))
|
||||
to_chat(usr, "<span class='notice'>You attempted to apply a ban that includes the CID [computerid]. This CID has been ignored for the following reason: [GLOB.configuration.admin.common_cid_map[computerid]]</span>")
|
||||
// Cancel it out. DO NOT USE NULL HERE. IT MAKES THE DB CRY. USE AN EMPTY STRING.
|
||||
computerid = ""
|
||||
|
||||
var/who
|
||||
for(var/client/C in GLOB.clients)
|
||||
if(!who)
|
||||
|
||||
Reference in New Issue
Block a user