rem: var sortname; 
add:  const userModes = this.parent.parent.userModes; var modeLevel = 0; var mode = ""; for (var i = 0; i < this.modes.length; i++) { for (var j = 0; j < userModes.length; j++) { if (userModes[j].mode == this.modes[i]) { if (userModes.length - j > modeLevel) { modeLevel = userModes.length - j; mode = userModes[j].symbol; } break; } } } 
context: function usr_updres(){    if (!ASSERT(this.TYPE == "IRCChanUser",                "cuser.updateGraphResource called on wrong object"))    {        return;    }    if (!("rdfRes" in this))    {        this.getGraphResource();        return;    }        var rdf = client.rdf;        rdf.Change (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.properNick));    if (this.name)        rdf.Change (this.rdfRes, rdf.resUser, rdf.GetLiteral(this.name));    else        rdf.Change (this.rdfRes, rdf.resUser, rdf.litUnk);    if (this.host)        rdf.Change (this.rdfRes, rdf.resHost, rdf.GetLiteral(this.host));    else        rdf.Change (this.rdfRes, rdf.resHost, rdf.litUnk);    var sortname;    if (this.isOp)        sortname = "a-";    else if (this.isHalfOp)        sortname = "b-";    else if (this.isVoice)        sortname = "c-";    else        sortname = "d-";        sortname += this.nick;    rdf.Change (this.rdfRes, rdf.resSortName, rdf.GetLiteral(sortname));    rdf.Change (this.rdfRes, rdf.resOp,                 this.isOp ? rdf.litTrue : rdf.litFalse);    rdf.Change (this.rdfRes, rdf.resHalfOp,                 this.isHalfOp ? rdf.litTrue : rdf.litFalse);    rdf.Change (this.rdfRes, rdf.resVoice,                this.isVoice ? rdf.litTrue : rdf.litFalse);}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/c6101b49aef97cf47069c333c0e54bcdd4a66616/static.js/clean/xul/content/static.js