[MIRROR] Fixes issue where role banned players can still play roles they're banned from. [MDB IGNORE] (#23399)

* Fixes issue where role banned players can still play roles they're banned from.

* Update sql_ban_system.dm

* Some formatting updates

---------

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-08-31 06:10:42 +02:00
committed by GitHub
parent 4c0a06439d
commit f8b2329771
4 changed files with 97 additions and 52 deletions
+1 -1
View File
@@ -200,7 +200,7 @@
LAZYREMOVE(ckeys_trying_to_spawn, user_ckey)
return
if(is_banned_from(user.key, role_ban))
if(is_banned_from(user.ckey, role_ban))
to_chat(user, span_warning("You are banned from this role!"))
LAZYREMOVE(ckeys_trying_to_spawn, user_ckey)
return