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