469 |
|
(one && target_p->from == one->from)) |
470 |
|
continue; |
471 |
|
|
472 |
< |
if (type != 0 && (ms->flags & type) == 0) |
472 |
> |
if (type && (ms->flags & type) == 0) |
473 |
|
continue; |
474 |
|
|
475 |
|
if (MyConnect(target_p)) |
525 |
|
if (IsDead(client_p)) |
526 |
|
continue; |
527 |
|
/* check against 'one' */ |
528 |
< |
if (one != NULL && (client_p == one->from)) |
528 |
> |
if (one && (client_p == one->from)) |
529 |
|
continue; |
530 |
|
/* check we have required capabs */ |
531 |
|
if ((client_p->localClient->caps & caps) != caps) |
532 |
|
continue; |
533 |
|
/* check we don't have any forbidden capabs */ |
534 |
< |
if ((client_p->localClient->caps & nocaps) != 0) |
534 |
> |
if ((client_p->localClient->caps & nocaps)) |
535 |
|
continue; |
536 |
|
|
537 |
|
send_message(client_p, buffer); |
572 |
|
DLINK_FOREACH(cptr, user->channel.head) |
573 |
|
{ |
574 |
|
chptr = ((struct Membership *)cptr->data)->chptr; |
575 |
– |
assert(chptr != NULL); |
575 |
|
|
576 |
|
DLINK_FOREACH(uptr, chptr->members.head) |
577 |
|
{ |
578 |
|
ms = uptr->data; |
579 |
|
target_p = ms->client_p; |
581 |
– |
assert(target_p != NULL); |
580 |
|
|
581 |
|
if (!MyConnect(target_p) || target_p == user || IsDefunct(target_p) || |
582 |
|
target_p->localClient->serial == current_serial) |
627 |
|
struct Membership *ms = ptr->data; |
628 |
|
struct Client *target_p = ms->client_p; |
629 |
|
|
630 |
< |
if (type != 0 && (ms->flags & type) == 0) |
630 |
> |
if (type && (ms->flags & type) == 0) |
631 |
|
continue; |
632 |
|
|
633 |
|
if (!MyConnect(target_p) || IsDefunct(target_p) || |
671 |
|
struct Membership *ms = ptr->data; |
672 |
|
struct Client *target_p = ms->client_p; |
673 |
|
|
674 |
< |
if (type != 0 && (ms->flags & type) == 0) |
674 |
> |
if (type && (ms->flags & type) == 0) |
675 |
|
continue; |
676 |
|
|
677 |
|
if (!MyConnect(target_p) || (one && target_p == one->from)) |