rem: if (this.commands[i].name.indexOf(partialName) == 0) ary.push (this.commands[i]); 
add: var name = commandNames[i]; if (!flags || (this.commands[name].flags & flags)) { if (!partialName || this.commands[name].name.indexOf(partialName) == 0) { if (partialName && partialName.length == this.commands[name].name.length) { /* exact match */ return [this.commands[name]]; } else { ary.push (this.commands[name]); } } } 
context: function cmgr_list (partialName){    /* returns array of command objects which look like |partialName|, or     * all commands if |partialName| is not specified */    if ((typeof partialName == "undefined") ||        (String(partialName) == ""))        return this.commands;    var ary = new Array();    for (var i in this.commands)    {        if (this.commands[i].name.indexOf(partialName) == 0)                ary.push (this.commands[i]);    }    return ary;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fa359690d17fc0358c5ed06036e22e12abc609c5/command-manager.js/buggy/extensions/irc/js/lib/command-manager.js