Method code for $command_cache.parse_command_module()

[Turn on line numbering]
arg value, action, @args;

value = (> $object_lib.to_dbref(value) <);
if (!value.is($user_interfaces))
    throw(~failed, value.namef('ref) + " is not a child of $user_interfaces");
if (!('general_cache in value.flags()))
    throw(~failed, value.namef('ref) + " is not set as a general cache");
if (action == 'del) {
    if (!(value in modules))
        throw(~failed, "The module '" + value + "' is not set, and thus cannot be removed");
    return value;
}
return value;

// Created 18-Sep-1997 as a part of ColdCore, see: @help Credit

Tlon