mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 08:09:34 +01:00
Merge pull request #8781 from Atermonera/language_whitelist_patch
Fixes issue with language whitelists
This commit is contained in:
@@ -83,15 +83,16 @@
|
||||
if(whitelist_overrides(M))
|
||||
return TRUE
|
||||
|
||||
var/client/C = (!isclient(M)) ? M.client : M
|
||||
|
||||
//You did something wrong
|
||||
if(!M || !language || !M.client)
|
||||
if(!istype(C) || !istype(language))
|
||||
return FALSE
|
||||
|
||||
//The language isn't even whitelisted
|
||||
if(!(language.flags & WHITELISTED))
|
||||
return TRUE
|
||||
|
||||
var/client/C = (!isclient(M)) ? M.client : M
|
||||
return C.is_whitelisted(language.type)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user