Skip to content
Snippets Groups Projects
Commit df99ffb3 authored by cyan's avatar cyan
Browse files

* Fix a bug wherein changing the case of a nick *only* would cause that nick

  to be destroyed in the internal IRCd nickname list.
parent c44d67e3
Branches
Tags
No related merge requests found
...@@ -863,13 +863,16 @@ function User_Work() { ...@@ -863,13 +863,16 @@ function User_Work() {
var str="NICK " + the_nick; var str="NICK " + the_nick;
this.bcast_to_uchans_unique(str); this.bcast_to_uchans_unique(str);
this.originatorout(str,this); this.originatorout(str,this);
this.created = time(); if (the_nick.toUpperCase() != this.nick.toUpperC
this.bcast_to_servers(str + " :" + this.created); ase()) {
push_nickbuf(this.nick,the_nick); this.created = time();
// move our Users entry over. push_nickbuf(this.nick,the_nick);
Users[the_nick.toUpperCase()] = this; // move our Users entry over.
delete Users[this.nick.toUpperCase()]; Users[the_nick.toUpperCase()] = this;
delete Users[this.nick.toUpperCase()];
}
// finalize // finalize
this.bcast_to_servers(str + " :" + this.created);
this.nick = the_nick; this.nick = the_nick;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment