Method code for $command_cache.match_shortcut()

[Turn on line numbering]
arg str, @ignore;
var s, match, obj, args;

for obj in ([this()] + filter s in (parents()) where (s.has_ancestor($command_cache)) + modules) {
    for s in (obj.shortcut_cache() || []) {
        if ((match = match_pattern(str, s[1])) != 0) {
            args = $command_lib.handle_shortcut_fields(s[2][2], match);
            return ['shortcut, [s[2][1], [str, @args]]];
        }
    }
}
return 0;

// $#Edited: 16 Oct 98 20:10 $user_bruce

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

the Cold Dark