CIRCNetwork.reclaimName Member

Syntax

object.reclaimName();

Returns

Remarks

See Also

Source Code

function my_reclaimname()
{
var network = this;
function callback() {
network.reclaimName();
};
if ("pendingReclaimCheck" in this)
delete this.pendingReclaimCheck;
// Function to attempt to get back the nickname the user wants.
if ((this.state != NET_ONLINE) || !this.primServ)
return false;
if (this.primServ.me.unicodeName == this.preferredNick)
return false;
this.reclaimLeft -= this.RECLAIM_WAIT;
if (this.reclaimLeft <= 0)
return false;
this.pendingReclaimCheck = true;
this.INITIAL_NICK = this.preferredNick;
this.primServ.changeNick(this.preferredNick);
setTimeout(callback, this.RECLAIM_WAIT);
return true;
}