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

Comparing ircd-hybrid-7.2/src/client.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 148 | Line 148 | free_client(struct Client *client_p)
148    assert(client_p != NULL);
149    assert(client_p != &me);
150    assert(client_p->hnext == client_p);
151  assert(client_p->invited.head == NULL);
151    assert(client_p->channel.head == NULL);
153  assert(dlink_list_length(&client_p->invited) == 0);
152    assert(dlink_list_length(&client_p->channel) == 0);
153  
154    MyFree(client_p->away);
# Line 158 | Line 156 | free_client(struct Client *client_p)
156  
157    if (MyConnect(client_p))
158    {
159 +    assert(client_p->localClient->invited.head == NULL);
160 +    assert(dlink_list_length(&client_p->localClient->invited) == 0);
161      assert(IsClosing(client_p) && IsDead(client_p));
162  
163      MyFree(client_p->localClient->response);
# Line 758 | Line 758 | exit_one_client(struct Client *source_p,
758      DLINK_FOREACH_SAFE(lp, next_lp, source_p->channel.head)
759        remove_user_from_channel(lp->data);
760  
761    /* Clean up invitefield */
762    DLINK_FOREACH_SAFE(lp, next_lp, source_p->invited.head)
763      del_invite(lp->data, source_p);
764
761      /* Clean up allow lists */
762      del_all_accepts(source_p);
763      add_history(source_p, 0);
# Line 772 | Line 768 | exit_one_client(struct Client *source_p,
768        source_p->from->serv->dep_users--;
769        assert(source_p->from->serv->dep_users >= 0);
770      }
771 +    else
772 +    {
773 +      /* Clean up invitefield */
774 +      DLINK_FOREACH_SAFE(lp, next_lp, source_p->localClient->invited.head)
775 +        del_invite(lp->data, source_p);
776 +    }
777    }
778  
779    /* Remove source_p from the client lists */

Diff Legend

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