/[svn]/ircd-hybrid-7.2/src/hash.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/hash.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 880 by michael, Thu Oct 25 20:25:26 2007 UTC
# Line 397  hash_find_id(const char *name) Line 397  hash_find_id(const char *name)
397    
398    if ((client_p = idTable[hashv]) != NULL)    if ((client_p = idTable[hashv]) != NULL)
399    {    {
400      if (irccmp(name, client_p->id))      if (strcmp(name, client_p->id))
401      {      {
402        struct Client *prev;        struct Client *prev;
403    
404        while (prev = client_p, (client_p = client_p->idhnext) != NULL)        while (prev = client_p, (client_p = client_p->idhnext) != NULL)
405        {        {
406          if (!irccmp(name, client_p->id))          if (!strcmp(name, client_p->id))
407          {          {
408            prev->idhnext = client_p->idhnext;            prev->idhnext = client_p->idhnext;
409            client_p->idhnext = idTable[hashv];            client_p->idhnext = idTable[hashv];
# Line 948  safe_list_channels(struct Client *source Line 948  safe_list_channels(struct Client *source
948        if (exceeding_sendq(source_p->from))        if (exceeding_sendq(source_p->from))
949        {        {
950          list_task->hash_index = i;          list_task->hash_index = i;
951          return; /* still more to do */          return;    /* still more to do */
952        }        }
953    
954        for (chptr = channelTable[i]; chptr; chptr = chptr->hnextch)        for (chptr = channelTable[i]; chptr; chptr = chptr->hnextch)

Legend:
Removed from v.34  
changed lines
  Added in v.880

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28