[Turn off line numbering]1: arg value, action, @args; 2: 3: value = (> $object_lib.to_dbref(value) <); 4: if (!value.is($user_interfaces)) 5: throw(~failed, value.namef('ref) + " is not a child of $user_interfaces"); 6: if (!('general_cache in value.flags())) 7: throw(~failed, value.namef('ref) + " is not set as a general cache"); 8: if (action == 'del) { 9: if (!(value in modules)) 10: throw(~failed, "The module '" + value + "' is not set, and thus cannot be removed"); 11: return value; 12: } 13: return value;
// Created 18-Sep-1997 as a part of ColdCore, see: @help Credit