rem: e.channelName = fromUnicode(e.channelName, e.network); var key = e.server.toLowerCase(e.channelName); if (key in e.server.channels) e.channel = e.server.channels[key]; 
add:  if (!valid) { if (e.channel) { e.reason = e.channelName + " " + e.reason; } else { display("Huh?", MT_ERROR); return; } } } 
context: function cmdLeave(e){    if (!e.server)    {        display(MSG_ERR_IMPROPER_VIEW, MT_ERROR);        return;    }    if (e.channelName)    {        if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1)            e.channelName = e.server.channelTypes[0] + e.channelName;        e.channelName = fromUnicode(e.channelName, e.network);        var key = e.server.toLowerCase(e.channelName);        if (key in e.server.channels)            e.channel = e.server.channels[key];        else            e.channel = null;    }    else    {        if (!e.channel)        {            display(MSG_ERR_IMPROPER_VIEW, MT_ERROR);            return;        }        e.channelName = e.channel.encodedName;    }    /* 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.channelName + " :" +                          fromUnicode(e.reason, e.channel) + "\n");    }    else    {        if (!e.noDelete && client.prefs["deleteOnPart"])            e.channel.dispatch("delete");    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/0918cade427e1856c2e2bcfdefa8b4ea3e457b73/commands.js/clean/xul/content/commands.js