From df99ffb3704a58abbc94ef6decd3b4ee3d52c6af Mon Sep 17 00:00:00 2001 From: cyan <> Date: Thu, 18 May 2006 21:05:57 +0000 Subject: [PATCH] * Fix a bug wherein changing the case of a nick *only* would cause that nick to be destroyed in the internal IRCd nickname list. --- exec/load/ircd_user.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/exec/load/ircd_user.js b/exec/load/ircd_user.js index 9c3fb983ef..771b6aaf87 100644 --- a/exec/load/ircd_user.js +++ b/exec/load/ircd_user.js @@ -863,13 +863,16 @@ function User_Work() { var str="NICK " + the_nick; this.bcast_to_uchans_unique(str); this.originatorout(str,this); - this.created = time(); - this.bcast_to_servers(str + " :" + this.created); - push_nickbuf(this.nick,the_nick); - // move our Users entry over. - Users[the_nick.toUpperCase()] = this; - delete Users[this.nick.toUpperCase()]; + if (the_nick.toUpperCase() != this.nick.toUpperC +ase()) { + this.created = time(); + push_nickbuf(this.nick,the_nick); + // move our Users entry over. + Users[the_nick.toUpperCase()] = this; + delete Users[this.nick.toUpperCase()]; + } // finalize + this.bcast_to_servers(str + " :" + this.created); this.nick = the_nick; } break; -- GitLab