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

Diff of /ircd-hybrid/src/s_serv.c

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

revision 510 by michael, Wed Feb 8 12:46:29 2006 UTC revision 511 by michael, Sat Mar 4 08:51:36 2006 UTC
# Line 704  check_server(const char *name, struct Cl Line 704  check_server(const char *name, struct Cl
704      ClearCap(client_p, CAP_TBURST);      ClearCap(client_p, CAP_TBURST);
705    }    }
706    
   /* Don't unset CAP_HUB here even if the server isn't a hub,  
    * it only indicates if the server thinks its lazylinks are  
    * leafs or not.. if you unset it, bad things will happen  
    */  
707    if (aconf != NULL)    if (aconf != NULL)
708    {    {
709      struct sockaddr_in *v4;      struct sockaddr_in *v4;
# Line 777  delete_capability(const char *capab_name Line 773  delete_capability(const char *capab_name
773    
774      if (cap->cap != 0)      if (cap->cap != 0)
775      {      {
776        if (irccmp(cap->name, capab_name) == 0)        if (!irccmp(cap->name, capab_name))
777        {        {
778          default_server_capabs &= ~(cap->cap);          default_server_capabs &= ~(cap->cap);
779          dlinkDelete(ptr, &cap_list);          dlinkDelete(ptr, &cap_list);
# Line 788  delete_capability(const char *capab_name Line 784  delete_capability(const char *capab_name
784      }      }
785    }    }
786    
787    return(0);    return 0;
788  }  }
789    
790  /*  /*
# Line 810  find_capability(const char *capab) Line 806  find_capability(const char *capab)
806    
807      if (cap->cap != 0)      if (cap->cap != 0)
808      {      {
809        if (irccmp(cap->name, capab) == 0)        if (!irccmp(cap->name, capab))
810          return(cap->cap);          return cap->cap;
811      }      }
812    }    }
813    return(0);  
814      return 0;
815  }  }
816    
817  /* send_capabilities()  /* send_capabilities()

Legend:
Removed from v.510  
changed lines
  Added in v.511

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