rem: display("Huh?", MT_ERROR); 
add: display(getMsg(MSG_ERR_UNKNOWN_CHANNEL, e.channelName), MT_ERROR); 
context: function cmdLeave(e){    if (!e.server)    {        display(MSG_ERR_IMPROPER_VIEW, MT_ERROR);        return;    }    // FIXME: Smart param handling... //    if (e.channelName)    {        if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1)        {            // No valid prefix character. Check they really meant a channel...            var valid = false;            for (var i = 0; i < e.server.channelTypes.length; i++)            {                // Hmm, not ideal...                var chan = e.server.getChannel(e.server.channelTypes[i] +                                               e.channelName);                if (chan)                {                    // Yes! They just missed that single character.                    e.channel = chan;                    valid = true;                    break;                }            }            // We can only let them get away here if we've got a channel.            if (!valid)            {                if (e.channel)                {                    e.reason = e.channelName + " " + e.reason;                }                else                {                    display("Huh?", MT_ERROR);                    return;                }            }        }        else        {            // Valid prefix, so get real channel (if it exists...).            e.channel = e.server.getChannel(e.channelName);        }    }    /* If it's not active, we're not actually in it, even though the view is     * still here.     */    if (e.channel && e.channel.active)    {        if (e.noDelete)            e.channel.noDelete = true;        if (!e.reason)            e.reason = "";        e.server.sendData("PART " + e.channel.encodedName + " :" +                          fromUnicode(e.reason, e.channel) + "\n");    }    else    {        if (!e.noDelete && client.prefs["deleteOnPart"])            e.channel.dispatch("delete");    }}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/f3caff6401bd85137d05c45eb57c1540c6210ab6/commands.js/clean/xul/content/commands.js