Method code for $has_commands.del_shortcut()

[Turn on line numbering]
arg shortcut;
var value;

(> .perms(sender()) <);

// remove the cards, just use the raw template
shortcut = strsed("-%1 %2", "%[0-9]+", "*");

// delete it...
value = (| shortcuts.del(shortcut) |);
if (type(value) != 'dictionary)
    throw(~shortcutnf, "Shortcut \"" + shortcut + "\" is not defined on this object.");
shortcuts = value;

["// Created 26-Mar-1995 as a part of ColdCore, see: @help Credit"]

the Cold Dark