rem:  var protoUser = new CIRCUser (parent.parent, properNick);  
add:  var protoUser = new CIRCUser(parent.parent, unicodeName, encodedName);  
context: function CIRCChanUser (parent, nick, modes){    var properNick = nick;    nick = parent.parent.toLowerCase(nick);    if (nick in parent.users)    {        var existingUser = parent.users[nick];        if (modes)        {            // If we start with a single character mode, assume we're replacing            // the list. (i.e. the list is either all +/- modes, or all normal)            if ((modes.length >= 1) && (modes[0].search(/^[-+]/) == -1))            {                // Modes, but no +/- prefixes, so *replace* mode list.                existingUser.modes = modes;            }            else            {                // We have a +/- mode list, so carefully update the mode list.                for (var m in modes)                {                    // This will remove '-' modes, and all other modes will be                    // added.                    var mode = modes[m][1];                    if (modes[m][0] == "-")                    {                        if (arrayContains(existingUser.modes, mode))                        {                            var i = arrayIndexOf(existingUser.modes, mode);                            arrayRemoveAt(existingUser.modes, i);                        }                    }                    else                    {                        if (!arrayContains(existingUser.modes, mode))                            existingUser.modes.push(mode);                    }                }            }        }        existingUser.isOp = (arrayContains(existingUser.modes, "o")) ?            true : false;        existingUser.isHalfOp = (arrayContains(existingUser.modes, "h")) ?            true : false;        existingUser.isVoice = (arrayContains(existingUser.modes, "v")) ?            true : false;        return existingUser;    }            var protoUser = new CIRCUser (parent.parent, properNick);            this.__proto__ = protoUser;    this.getURL = cusr_geturl;    this.setOp = cusr_setop;    this.setHalfOp = cusr_sethalfop;    this.setVoice = cusr_setvoice;    this.setBan = cusr_setban;    this.kick = cusr_kick;    this.kickBan = cusr_kban;    this.say = cusr_say;    this.notice = cusr_notice;    this.act = cusr_act;    this.whois = cusr_whois;    this.parent = parent;    this.TYPE = "IRCChanUser";        this.modes = new Array();    if (typeof modes != "undefined")        this.modes = modes;    this.isOp = (arrayContains(this.modes, "o")) ? true : false;    this.isHalfOp = (arrayContains(this.modes, "h")) ? true : false;    this.isVoice = (arrayContains(this.modes, "v")) ? true : false;        parent.users[nick] = this;    return this;}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/c6101b49aef97cf47069c333c0e54bcdd4a66616/irc.js/buggy/js/lib/irc.js