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; |
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); |
784 |
} |
} |
785 |
} |
} |
786 |
|
|
787 |
return(0); |
return 0; |
788 |
} |
} |
789 |
|
|
790 |
/* |
/* |
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() |