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 |
|
{ |
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 |