Reworking Bot API and optimizing for loops in admin code (#6355)

This commit is contained in:
Mykhailo Bykhovtsev
2019-05-01 14:14:26 +02:00
committed by Werner
parent 5bf33373c9
commit 81e7f29878
21 changed files with 121 additions and 55 deletions
+3 -2
View File
@@ -61,10 +61,11 @@ var/list/admin_ranks = list() //list of all ranks with associated rights
/proc/load_admins()
//clear the datums references
admin_datums.Cut()
for(var/client/C in admins)
for(var/s in staff)
var/client/C = s
C.remove_admin_verbs()
C.holder = null
admins.Cut()
staff.Cut()
// Clears admins from the world config.
for (var/A in world.GetConfig("admin"))