Zeus - Don't allow creating a new zeus module if we already are one (#7970)

This commit is contained in:
PabstMirror 2020-10-25 14:01:59 -05:00 committed by GitHub
parent 84b18d3f06
commit 0f6a9ecb87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,9 @@
* Public: No
*/
// Don't allow if we already are a zeus, intentionally using player instead of ace_player
if (!isNull getAssignedCuratorLogic player) exitWith { false };
(isNil QGVAR(zeus)) && {
switch (GVAR(canCreateZeus)) do {
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}};