ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/send.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/send.c (file contents):
Revision 3241 by michael, Sun Mar 30 16:45:31 2014 UTC vs.
Revision 3243 by michael, Sun Mar 30 16:53:43 2014 UTC

# Line 469 | Line 469 | sendto_channel_butone(struct Client *one
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))
# Line 525 | Line 525 | sendto_server(struct Client *one,
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);
# Line 572 | Line 572 | sendto_common_channels_local(struct Clie
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)
# Line 629 | Line 627 | sendto_channel_local(unsigned int type,
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) ||
# Line 673 | Line 671 | sendto_channel_local_butone(struct Clien
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))

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)