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

Comparing ircd-hybrid/trunk/src/channel.c (file contents):
Revision 8439 by michael, Thu Mar 29 13:07:32 2018 UTC vs.
Revision 8447 by michael, Fri Mar 30 11:36:17 2018 UTC

# Line 215 | Line 215 | channel_send_mask_list(struct Client *cl
215    int tlen, mlen, cur_len;
216    char *pp = pbuf;
217  
218 <  if (!dlink_list_length(list))
218 >  if (dlink_list_length(list) == 0)
219      return;
220  
221    mlen = snprintf(mbuf, sizeof(mbuf), ":%s BMASK %ju %s %c :", me.id,
# Line 904 | Line 904 | channel_do_join(struct Client *client_p,
904      if (key && *key == '\0')
905        key = NULL;
906  
907 <    if (!channel_check_name(name, 1))
907 >    if (channel_check_name(name, 1) == 0)
908      {
909        sendto_one_numeric(client_p, &me, ERR_BADCHANNAME, name);
910        continue;
# Line 946 | Line 946 | channel_do_join(struct Client *client_p,
946         * This should never be the case unless there is some sort of
947         * persistant channels.
948         */
949 <      if (!dlink_list_length(&chptr->members))
949 >      if (dlink_list_length(&chptr->members) == 0)
950          flags = CHFL_CHANOP;
951        else
952          flags = 0;

Diff Legend

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