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

Comparing ircd-hybrid-7.2/src/channel.c (file contents):
Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 317 by michael, Sat Dec 24 14:45:17 2005 UTC

# Line 528 | Line 528 | add_invite(struct Channel *chptr, struct
528    /*
529     * delete last link in chain if the list is max length
530     */
531 <  if (dlink_list_length(&who->invited) >=
531 >  if (dlink_list_length(&who->localClient->invited) >=
532        ConfigChannel.max_chans_per_user)
533 <    del_invite(who->invited.tail->data, who);
533 >    del_invite(who->localClient->invited.tail->data, who);
534  
535    /* add client to channel invite list */
536    dlinkAdd(who, make_dlink_node(), &chptr->invites);
537  
538    /* add channel to the end of the client invite list */
539 <  dlinkAdd(chptr, make_dlink_node(), &who->invited);
539 >  dlinkAdd(chptr, make_dlink_node(), &who->localClient->invited);
540   }
541  
542   /*! \brief Delete Invite block from channel invite list
# Line 549 | Line 549 | del_invite(struct Channel *chptr, struct
549   {
550    dlink_node *ptr = NULL;
551  
552 <  if ((ptr = dlinkFindDelete(&who->invited, chptr)))
552 >  if ((ptr = dlinkFindDelete(&who->localClient->invited, chptr)))
553      free_dlink_node(ptr);
554  
555    if ((ptr = dlinkFindDelete(&chptr->invites, who)))
# Line 655 | Line 655 | can_join(struct Client *source_p, struct
655        return ERR_BANNEDFROMCHAN;
656  
657    if (chptr->mode.mode & MODE_INVITEONLY)
658 <    if (!dlinkFind(&source_p->invited, chptr))
658 >    if (!dlinkFind(&source_p->localClient->invited, chptr))
659        if (!ConfigChannel.use_invex || !find_bmask(source_p, &chptr->invexlist))
660          return ERR_INVITEONLYCHAN;
661  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines