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

Comparing ircd-hybrid/src/channel.c (file contents):
Revision 227 by db, Thu Nov 3 18:29:22 2005 UTC vs.
Revision 315 by michael, Fri Dec 23 11:56:34 2005 UTC

# Line 513 | Line 513 | add_invite(struct Channel *chptr, struct
513    /*
514     * delete last link in chain if the list is max length
515     */
516 <  if (dlink_list_length(&who->invited) >=
516 >  if (dlink_list_length(&who->localClient->invited) >=
517        ConfigChannel.max_chans_per_user)
518 <    del_invite(who->invited.tail->data, who);
518 >    del_invite(who->localClient->invited.tail->data, who);
519  
520    /* add client to channel invite list */
521    dlinkAdd(who, make_dlink_node(), &chptr->invites);
522  
523    /* add channel to the end of the client invite list */
524 <  dlinkAdd(chptr, make_dlink_node(), &who->invited);
524 >  dlinkAdd(chptr, make_dlink_node(), &who->localClient->invited);
525   }
526  
527   /*! \brief Delete Invite block from channel invite list
# Line 534 | Line 534 | del_invite(struct Channel *chptr, struct
534   {
535    dlink_node *ptr = NULL;
536  
537 <  if ((ptr = dlinkFindDelete(&who->invited, chptr)))
537 >  if ((ptr = dlinkFindDelete(&who->localClient->invited, chptr)))
538      free_dlink_node(ptr);
539  
540    if ((ptr = dlinkFindDelete(&chptr->invites, who)))
# Line 640 | Line 640 | can_join(struct Client *source_p, struct
640        return ERR_BANNEDFROMCHAN;
641  
642    if (chptr->mode.mode & MODE_INVITEONLY)
643 <    if (!dlinkFind(&source_p->invited, chptr))
643 >    if (!dlinkFind(&source_p->localClient->invited, chptr))
644        if (!ConfigChannel.use_invex || !find_bmask(source_p, &chptr->invexlist))
645          return ERR_INVITEONLYCHAN;
646  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines