mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Deadmin tweaks: Admins without +AUTOLOGIN start deadmined. AUTOLOGIN defaults to on. (#33480)
* Deadmin tweaks, Admins without +ADMIN start deadmined. Deadmining no longer destroys the admin datum. Admins without +ADMIN start deadmined, reloading admins re-deadmins them. Moved some code around to make it more sane People with +PERMISSION can now deadmin or readmin other admins at will. * Adds new flag for if the role should automatically log in, defaults to on, can be removed with -AUTOLOGIN Also fixes a bug in permission panel not handling these cases gracefully
This commit is contained in:
committed by
Joan Lung
parent
5ffec027af
commit
4e929c74a9
@@ -158,7 +158,7 @@ SUBSYSTEM_DEF(vote)
|
||||
|
||||
var/admin = FALSE
|
||||
var/ckey = ckey(initiator_key)
|
||||
if((GLOB.admin_datums[ckey]) || (ckey in GLOB.deadmins))
|
||||
if(GLOB.admin_datums[ckey])
|
||||
admin = TRUE
|
||||
|
||||
if(next_allowed_time > world.time && !admin)
|
||||
|
||||
Reference in New Issue
Block a user