rem: this.primServ.sendData("NICK " + fromUnicode(newnick, this) + "\n"); 
add: this.primServ.changeNick(newnick); 
context: function my_433 (e){    var nick = toUnicode(e.params[2], this);    if ("pendingReclaimCheck" in this)    {        delete this.pendingReclaimCheck;        return;    }    if (this.state == NET_CONNECTING)    {        // Force a number, thanks.        var nickIndex = 1 * arrayIndexOf(this.prefs["nicknameList"], nick);        var newnick;        dd("433: failed with " + nick + " (" + nickIndex + ")");        var tryList = true;        if ((("_firstNick" in this) && (this._firstNick == -1)) ||            (this.prefs["nicknameList"].length == 0) ||            ((nickIndex != -1) && (this.prefs["nicknameList"].length < 2)))        {            tryList = false;        }        if (tryList)        {            nickIndex = (nickIndex + 1) % this.prefs["nicknameList"].length;            if (("_firstNick" in this) && (this._firstNick == nickIndex))            {                // We're back where we started. Give up with this method.                this._firstNick = -1;                tryList = false;            }        }        if (tryList)        {            newnick = this.prefs["nicknameList"][nickIndex];            dd("     trying " + newnick + " (" + nickIndex + ")");            // Save first index we've tried.            if (!("_firstNick" in this))                this._firstNick = nickIndex;        }        else        {            newnick = this.INITIAL_NICK + "_";            dd("     trying " + newnick);        }        this.INITIAL_NICK = newnick;        this.display(getMsg(MSG_RETRY_NICK, [nick, newnick]), "433");        this.primServ.sendData("NICK " + fromUnicode(newnick, this) + "\n");    }    else    {        this.display(getMsg(MSG_NICK_IN_USE, nick), "433");    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1622/24d0608c4e70c148fa9274ddd9ac954bb59d35d2/handlers.js/clean/xul/content/handlers.js