rem: /* When we have #<tab>, we just want the current channel, if possible. */ 
add: /* When we have #<tab>, we just want the current channel, if possible. */ 
context: function gettabmatch_other (line, wordStart, wordEnd, word, cursorpos){    if (wordStart == 0 && line[0] == client.COMMAND_CHAR)    {        return client.performTabMatch (line, wordStart, wordEnd, word,                                       cursorpos);    }        var matchList = new Array();    var users;    var channels;    var details = getObjectDetails(this);    if ("channel" in details && word == details.channel.name[0])    {        /* When we have #<tab>, we just want the current channel, if possible. */        matchList.push (details.channel.unicodeName);    }    else    {        /* Ok, not #<tab> or no current channel, so get the full list. */                if ("users" in details.orig)        {            users = details.orig.users;            for (var n in users)                matchList.push (users[n].nick);        }                if ("server" in details)        {            channels = details.server.channels;            for (var c in channels)                matchList.push (channels[c].name);        }    }        var matches = matchEntry (word, matchList);    if (matches.length == 1)    {        if (users && matches[0] in users)        {            matches[0] = users[matches[0]].properNick;            if (wordStart == 0)                matches[0] += client.ADDRESSED_NICK_SEP;        }        else if (channels && matches[0] in channels)        {            matches[0] = channels[matches[0]].unicodeName;        }        if (wordEnd == line.length)        {            /* add a space if the word is at the end of the line. */            matches[0] += " ";        }    }    return matches;}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/3df45f52a2f3a304b5c3c14817a3c2c3cbfc6921/static.js/buggy/xul/content/static.js