From Tapestries MUCK
con-gohome(#3306FWLM3) more commonly referred to as "auto sweep." It is not called directly, rather, it is called for every player that disconnects from room #0 in _disconnect/go-home.
After a player disconnects, it checks to see if they are in an areas with an auto-sweep. If they are, it determines how long the delay should be, and sleeps. If the player has reconnected by the time it wakes, it simply exits, otherwise it sweeps the player home.
There are two properties that it scans it's environment for:
- _prefs/sleep-message:message appended to name.
The first is the message, the default in much of the Muck being "is taken home to sleep by the local police." which results in: Player is taken home to sleep by the local police. For example:
@set #<my parent room's dbref>=_prefs/sleep-message:is tossed out the front door by the bouncers.
The second controls how many minutes it takes after the player being disconnected for them to be swept. In general this should be something long enough to account for network fluctuations and still short enough your public area is not cluttered with sleeping bodies. In any case do not set this value insanely high, it will cause the MUCK problems, and believe me, we will notice. Suggested values are from 10 minutes to a few hours. Example:
@set #<my parent room's dbref>=_prefs/sleep-period:10
It is most common to stick this in a Parent Room for all your public rooms rather than setting it on each individual room.
NOTE: This respects the sweep command's _sweep/immune property. See that program for details.