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-7.2/src/send.c (file contents):
Revision 571 by michael, Sat Feb 11 21:58:40 2006 UTC vs.
Revision 572 by michael, Sun Apr 30 16:57:48 2006 UTC

# Line 670 | Line 670 | sendto_common_channels_local(struct Clie
670      chptr = ((struct Membership *) cptr->data)->chptr;
671      assert(chptr != NULL);
672  
673 <    DLINK_FOREACH(uptr, chptr->locmembers.head)
673 >    DLINK_FOREACH(uptr, chptr->members.head)
674      {
675        ms = uptr->data;
676        target_p = ms->client_p;
677        assert(target_p != NULL);
678  
679 <      if (target_p == user || IsDefunct(target_p) ||
679 >      if (!MyConnect(target_p) || target_p == user || IsDefunct(target_p) ||
680            target_p->serial == current_serial)
681          continue;
682  
# Line 715 | Line 715 | sendto_channel_local(int type, int nodea
715    len = send_format(buffer, IRCD_BUFSIZE, pattern, args);
716    va_end(args);
717  
718 <  DLINK_FOREACH(ptr, chptr->locmembers.head)
718 >  DLINK_FOREACH(ptr, chptr->members.head)
719    {
720      ms = ptr->data;
721      target_p = ms->client_p;
# Line 723 | Line 723 | sendto_channel_local(int type, int nodea
723      if (type != 0 && (ms->flags & type) == 0)
724        continue;
725  
726 <    if (IsDefunct(target_p) || (nodeaf && IsDeaf(target_p)))
726 >    if (!MyConnect(target_p) || IsDefunct(target_p) ||
727 >        (nodeaf && IsDeaf(target_p)))
728        continue;
729  
730      send_message(target_p, buffer, len);
# Line 757 | Line 758 | sendto_channel_local_butone(struct Clien
758    len = send_format(buffer, IRCD_BUFSIZE, pattern, args);
759    va_end(args);
760  
761 <  DLINK_FOREACH(ptr, chptr->locmembers.head)      
761 >  DLINK_FOREACH(ptr, chptr->members.head)      
762    {  
763      ms = ptr->data;
764      target_p = ms->client_p;
# Line 765 | Line 766 | sendto_channel_local_butone(struct Clien
766      if (type != 0 && (ms->flags & type) == 0)
767        continue;
768  
769 <    if (target_p == one || IsDefunct(target_p) || IsDeaf(target_p))
769 >    if (!MyConnect(target_p) || target_p == one ||
770 >        IsDefunct(target_p) || IsDeaf(target_p))
771        continue;
772      send_message(target_p, buffer, len);
773    }

Diff Legend

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