Method code for $scheduler.add_sub_scheduler()

[Turn on line numbering]
arg object;

if (!$sys.is_admin(sender()))
    throw(~perm, "Only admins may add sub schedulers.");
if (type(object) != 'objnum)
    throw(~type, "Object must be a dbref.");
sub_schedulers += [object];

// Miroslav Silovic
// Created 05-Sep-1995 as a part of ColdCore, see: @help Credit

Tlon