Author: Bleep <tomh@inxpress.net>
authorBleep <twhelvey1@home.com>
Sat, 11 Dec 1999 08:54:13 +0000 (08:54 +0000)
committerBleep <twhelvey1@home.com>
Sat, 11 Dec 1999 08:54:13 +0000 (08:54 +0000)
commitcab52df4ee38665d122be2dbee7adaf2b6db3763
tree2fb35db31ac75ffc35ea19010118d5c9e1f05470
parent95eeb973be84e391b553e5fc9bdebdc36a78598d
Author: Bleep <tomh@inxpress.net>
Log message:
Bug Fix. This fixes a bug which was causing stale entries to be left in
the client hash table when names were changed.
From Isomer:
I believe that it doesn't actually /do/ anything if your at the head of
the bucket.  It should remove you from the bucket and place you in the new
one.  Patch should be trivial for someone with cvs access to apply.

int hChangeClient(aClient *cptr, char *newname)
{
  register HASHREGS oldhash = strhash(cptr->name);
  register HASHREGS newhash = strhash(newname);
  register aClient *tmp;

  tmp = clientTable[oldhash];

  if (tmp == cptr)
    return 0;
  /* ^^^^^^^^ shouldn't we do something here? */

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@11 c9e4aea6-c8fd-4c43-8297-357d70d61c8c
.patches
BUGS
ChangeLog
ircd/hash.c