Switch to edit mode.
Name(s): boot_idles1: "Boots anyone with an idle of more than 60 minutes."
2: "Warns anyone with idle of more than 55 minutes"
3: "Temporarily turned off. I wanna see what effects this will have. -Lao (Dec 11/99)"
4: "Nah, people with dead clients don't disconnect. This is ugly. -whiz"
5: for dobj in (connected_players(1))
6: try
7: idle = idle_seconds(dobj)
8: except (E_INVARG)
9: continue
10: endtry
11: if (!valid(dobj))
12: if (idle > 3600)
13: boot_player(dobj)
14: endif
15: elseif (dobj:isa($daemon_connection) && dobj:idle_seconds() > dobj.daemon.max_idle_time)
16: boot_player(dobj)
17: elseif (!dobj:connected(0) || dobj:isa($project))
18: "Projects don't yawn, or maybe they disconnected in the suspend."
19: elseif (`dobj:_animator() ! E_VERBNF => 0' != 0)
20: "Don't boot animated people."
21: elseif (`dobj:idle_seconds() ! ANY => idle' > this.idle_boot)
22: `dobj.location:sub_announce_all(dobj:title() + " appears to have fallen asleep.") ! ANY'
23: p = player
24: player = dobj
25: boot_player(dobj)
26: player = p
27: elseif (`dobj:idle_seconds() ! ANY => idle' > this.idle_boot - 5 * 60)
28: `dobj.location:sub_announce_all("%d yawns deeply.") ! ANY'
29: endif
30: endfor
31: "Last modified by Dax (#789) on Thu May 5 15:50:58 2005 MDT."