rem: else if (e.command.name == "user-motif") 
add: else if (e.command.name == "user-pref") 
context: function cmdPref (e){    var msg;    var pm;        if (e.command.name == "network-pref")    {        pm = e.network.prefManager;        msg = MSG_FMT_NETPREF;    }    else if (e.command.name == "channel-pref")    {        pm = e.channel.prefManager;        msg = MSG_FMT_CHANPREF;    }    else if (e.command.name == "user-motif")    {        pm = e.user.prefManager;        msg = MSG_FMT_USERPREF;    }    else    {        pm = client.prefManager;        msg = MSG_FMT_PREF;    }    var ary = pm.listPrefs(e.prefName);    if (ary.length == 0)    {        display (getMsg(MSG_ERR_UNKNOWN_PREF, [e.prefName]),                 MT_ERROR);        return false;    }    if (e.prefValue == "-")        e.deletePref = true;            if (e.deletePref)    {        try        {            pm.clearPref(e.prefName);        }        catch (ex)        {            // ignore exception generated by clear of nonexistant pref            if (!("result" in ex) ||                ex.result != Components.results.NS_ERROR_UNEXPECTED)            {                throw ex;            }        }        var prefValue = pm.prefs[e.prefName];        feedback (e, getMsg(msg, [e.prefName, pm.prefs[e.prefName]]));        return true;    }    if (e.prefValue)    {        var r = pm.prefRecords[e.prefName];        var type;                if (typeof r.defaultValue == "function")            type = typeof r.defaultValue(e.prefName);        else            type = typeof r.defaultValue;        switch (type)        {            case "number":                e.prefValue = Number(e.prefValue);                break;            case "boolean":                e.prefValue = (e.prefValue.toLowerCase() == "true");                break;            case "string":                break;            default:                if (r.defaultValue instanceof Array)                    e.prefValue = pm.stringToArray(e.prefValue);                else                    e.prefValue = e.prefValue.join("; ");                break;        }        pm.prefs[e.prefName] = e.prefValue;        feedback (e, getMsg(msg, [e.prefName, e.prefValue]));    }    else    {        for (var i = 0; i < ary.length; ++i)        {            var value;            if (pm.prefs[ary[i]] instanceof Array)                value = pm.prefs[ary[i]].join("; ");            else                value = pm.prefs[ary[i]];            feedback(e, getMsg(msg, [ary[i], value]));        }    }    return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4cd3ec76af2e3a9922c2d114bf4267b40b388ac2/commands.js/clean/extensions/irc/xul/content/commands.js