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

Comparing:
ircd-hybrid/src/whowas.c (file contents), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-7.2/src/whowas.c (file contents), Revision 507 by michael, Sat Mar 4 08:20:28 2006 UTC

# Line 53 | Line 53 | add_history(struct Client *client_p, int
53   {
54    struct Whowas *who = &WHOWAS[whowas_next];
55  
56 <  assert(client_p != NULL);
57 <
58 <  if (client_p == NULL)
59 <    return;
60 <
61 <  /* XXX when is this possible? Looks like it could happen
62 <   * (with a half registered client.)
63 <   * and what is the correct action here? - Dianora
64 <   */
65 <  if (client_p->servptr == NULL)
66 <    return;
56 >  assert(client_p && client_p->servptr);
57  
58    if (who->hashv != -1)
59    {
# Line 72 | Line 62 | add_history(struct Client *client_p, int
62      del_whowas_from_list(&WHOWASHASH[who->hashv], who);
63    }
64  
65 <  who->hashv  = strhash(client_p->name);
65 >  who->hashv = strhash(client_p->name);
66    who->logoff = CurrentTime;
67  
68    /* NOTE: strcpy ok here, the sizes in the client struct MUST

Comparing:
ircd-hybrid/src/whowas.c (property svn:keywords), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-7.2/src/whowas.c (property svn:keywords), Revision 507 by michael, Sat Mar 4 08:20:28 2006 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

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