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

Comparing ircd-hybrid-7.2/src/hash.c (file contents):
Revision 895 by michael, Thu Oct 25 20:25:26 2007 UTC vs.
Revision 896 by michael, Sat Nov 3 08:54:09 2007 UTC

# Line 897 | Line 897 | list_allow_channel(const char *chname, s
897   */
898   static void
899   list_one_channel(struct Client *source_p, struct Channel *chptr,
900 <                 struct ListTask *list_task, int remote_request)
900 >                 struct ListTask *list_task)
901   {
902 <  if ((remote_request && chptr->chname[0] == '&') ||
903 <      (SecretChannel(chptr) && !IsMember(source_p, chptr)))
902 >  if (SecretChannel(chptr) && !IsMember(source_p, chptr))
903      return;
904    if ((unsigned int)dlink_list_length(&chptr->members) < list_task->users_min ||
905        (unsigned int)dlink_list_length(&chptr->members) > list_task->users_max ||
# Line 935 | Line 934 | list_one_channel(struct Client *source_p
934   */
935   void
936   safe_list_channels(struct Client *source_p, struct ListTask *list_task,
937 <                   int only_unmasked_channels, int remote_request)
937 >                   int only_unmasked_channels)
938   {
939    struct Channel *chptr = NULL;
940  
# Line 943 | Line 942 | safe_list_channels(struct Client *source
942    {
943      int i;
944  
945 <    for (i = list_task->hash_index; i < HASHSIZE; i++)
945 >    for (i = list_task->hash_index; i < HASHSIZE; ++i)
946      {
947        if (exceeding_sendq(source_p->from))
948        {
# Line 952 | Line 951 | safe_list_channels(struct Client *source
951        }
952  
953        for (chptr = channelTable[i]; chptr; chptr = chptr->hnextch)
954 <        list_one_channel(source_p, chptr, list_task, remote_request);
954 >        list_one_channel(source_p, chptr, list_task);
955      }
956    }
957    else
# Line 961 | Line 960 | safe_list_channels(struct Client *source
960  
961      DLINK_FOREACH(dl, list_task->show_mask.head)
962        if ((chptr = hash_find_channel(dl->data)) != NULL)
963 <        list_one_channel(source_p, chptr, list_task, remote_request);
963 >        list_one_channel(source_p, chptr, list_task);
964    }
965  
966    free_list_task(list_task, source_p);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines