| 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 || |
| 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 |
|
|
| 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 |
|
{ |
| 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 |
| 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); |