rem:  var chan = fromUnicode(e.target, e.server); 
add: var chan; 
context: function cmdMode(e){    // get our canonical channel name, so we know what channel we talk about    var chan = fromUnicode(e.target, e.server);    // Make sure the user can leave the channel name out from a channel view.    if (e.channel && /^[\+\-].+/.test(e.target) &&         !(e.server.toLowerCase(chan) in e.server.channels))    {        chan = e.channel.canonicalName;        if (e.param && e.modestr)        {            e.paramList.unshift(e.modestr);        }        else if (e.modestr)        {            e.paramList = [e.modestr];            e.param = e.modestr;        }        e.modestr = e.target;    }    // Check whether our mode string makes sense    if (!(/^([+-][a-z]+)+$/i).test(e.modestr))    {        display(getMsg(MSG_ERR_INVALID_MODE, e.modestr), MT_ERROR);        return;    }    var params = (e.param) ? " " + e.paramList.join(" ") : "";    e.server.sendData("MODE " + chan + " " + fromUnicode(e.modestr, e.server) +                      params + "\n");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/81e5bceb74f95e9a2073a37947757f68632049b7/commands.js/clean/extensions/irc/xul/content/commands.js