rem: var bgColor = ary[3]; if (bgColor > 16) bgColor &= 16; 
add: var bgColor = String(Number(ary[3]) % 16); 
context: function mircChangeColor (colorInfo, containerTag, data){    /* If colors are disabled, the caller doesn't want colors specifically, or     * the caller doesn't want any state-changing effects, we drop out.     */    if (!client.enableColors ||        (("noMircColors" in data) && data.noMircColors) ||        (("noStateChange" in data) && data.noStateChange))    {        return;    }    var ary = colorInfo.match (/.(\d{1,2}|)(,(\d{1,2})|)/);    var fgColor = ary[1];    if (fgColor > 16)        fgColor &= 16;    switch (fgColor.length)    {        case 0:            delete data.currFgColor;            delete data.currBgColor;            return;        case 1:            data.currFgColor = "0" + fgColor;            break;        case 2:            data.currFgColor = fgColor;            break;    }    if (fgColor == 1)        delete data.currFgColor;    if (arrayHasElementAt(ary, 3))    {        var bgColor = ary[3];        if (bgColor > 16)            bgColor &= 16;        if (bgColor.length == 1)            data.currBgColor = "0" + bgColor;        else            data.currBgColor = bgColor;        if (bgColor == 0)            delete data.currBgColor;    }    data.hasColorInfo = true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2355001ea2cb50af0b03bb74b2c29a091c82e367/static.js/buggy/extensions/irc/xul/content/static.js