View/Edit #58:start_cleanup

Switch to edit mode.

Name(s): start_cleanup
1:  !caller_perms():controls(this) && raise(E_PERM)
2:  "Dumb algorithm, but hey it only once every 24h, in the middle of the night."
3:  need_cleaning = {}
4:  for r in ($room:descendants_suspended())
5:    if (r.clean_me)
6:      need_cleaning[1..0] = {r}
7:    endif
8:    $command_utils:suspend_if_needed()
9:  endfor
10: this:dispatch(@need_cleaning)
11: "Last modified by Raptor (#6319) on Fri Oct 30 18:13:10 1998 EST."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Housekeeper (#58)

You are not logged in.

[home | help | who | search | setup | code]