[Turn off line numbering]1: arg command, definer; 2: var part, cmd, c; 3: 4: if (type(commands) != 'dictionary) 5: commands = #[]; 6: cmd = command.word(1); 7: for part in (cmd.explode_template_word()) { 8: for c in ((| commands[part] |) || []) { 9: if (c == [command, definer]) 10: commands = commands.del_elem(part, [command, definer]); 11: } 12: }
// Created 18-Sep-1997 as a part of ColdCore, see: @help Credit