rem: pm = client.prefManager; msg = MSG_CURRENT_CHARSET; 
add: pm = e.sourceObject.prefManager; msg = MSG_CURRENT_CHARSET_VIEW; 
context: function cmdCharset(e){    var pm;        if (e.command.name == "channel-charset")    {        pm = e.channel.prefManager;        msg = MSG_CURRENT_CHARSET_CHAN;    }    else if (e.command.name == "network-charset")    {        pm = e.network.prefManager;        msg = MSG_CURRENT_CHARSET_NET;    }    else if (e.command.name == "user-charset")    {        pm = e.user.prefManager;        msg = MSG_CURRENT_CHARSET_USER;    }    else    {        pm = client.prefManager;        msg = MSG_CURRENT_CHARSET;    }    if (e.newCharset)    {        if (e.newCharset == "-")        {            pm.clearPref("charset");        }        else        {            if(!checkCharset(e.newCharset))            {                display(getMsg(MSG_ERR_INVALID_CHARSET, e.newCharset),                        MT_ERROR);                return;            }            pm.prefs["charset"] = e.newCharset;        }    }    display(getMsg(msg, pm.prefs["charset"]));}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7aa5d75feedcf1ef4e6065bbe62b5e4bba8d88f4/commands.js/clean/extensions/irc/xul/content/commands.js