start making this compile
This commit is contained in:
parent
d56734d6dd
commit
5b96d9a6b9
60 changed files with 1834 additions and 2071 deletions
|
@ -196,17 +196,17 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
static void
|
||||
add_invite(struct Channel *chptr, struct Client *who)
|
||||
{
|
||||
dlink_node *ptr;
|
||||
rb_dlink_node *ptr;
|
||||
|
||||
/* already invited? */
|
||||
DLINK_FOREACH(ptr, who->user->invited.head)
|
||||
RB_DLINK_FOREACH(ptr, who->user->invited.head)
|
||||
{
|
||||
if(ptr->data == chptr)
|
||||
return;
|
||||
}
|
||||
|
||||
/* ok, if their invite list is too long, remove the tail */
|
||||
if((int)dlink_list_length(&who->user->invited) >=
|
||||
if((int)rb_dlink_list_length(&who->user->invited) >=
|
||||
ConfigChannel.max_chans_per_user)
|
||||
{
|
||||
ptr = who->user->invited.tail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue