[Turn on line numbering]var cmd, obj, part, element, info; (> .perms(sender()) <); (| .purge_cache() |); if (!.is_general_cache()) { // if we are not an official cache, just cache commands we define commands = #[]; for cmd in (.local_commands()) { for part in (cmd[2]) .add_to_cache(part[1], this()); } shortcuts = .shortcuts().to_list(); } else { // otherwise cache all defined commands if ((info = .all_local_commands())) { for element in (info) { [obj, element] = element; for part in (element) .add_to_cache(part[1], obj); } } shortcuts = .all_shortcuts(); }
// Created 18-Sep-1997 as a part of ColdCore, see: @help Credit