88 |
|
void |
89 |
|
whowas_off_history(struct Client *client_p) |
90 |
|
{ |
91 |
< |
dlink_node *ptr = NULL, *ptr_next = NULL; |
91 |
> |
dlink_node *node = NULL, *node_next = NULL; |
92 |
|
|
93 |
< |
DLINK_FOREACH_SAFE(ptr, ptr_next, client_p->whowas.head) |
93 |
> |
DLINK_FOREACH_SAFE(node, node_next, client_p->whowas.head) |
94 |
|
{ |
95 |
< |
struct Whowas *temp = ptr->data; |
95 |
> |
struct Whowas *temp = node->data; |
96 |
|
|
97 |
|
temp->online = NULL; |
98 |
|
dlinkDelete(&temp->cnode, &client_p->whowas); |
102 |
|
struct Client * |
103 |
|
whowas_get_history(const char *nick, time_t timelimit) |
104 |
|
{ |
105 |
< |
dlink_node *ptr = NULL; |
105 |
> |
dlink_node *node = NULL; |
106 |
|
|
107 |
|
timelimit = CurrentTime - timelimit; |
108 |
|
|
109 |
< |
DLINK_FOREACH(ptr, WHOWASHASH[strhash(nick)].head) |
109 |
> |
DLINK_FOREACH(node, WHOWASHASH[strhash(nick)].head) |
110 |
|
{ |
111 |
< |
struct Whowas *temp = ptr->data; |
111 |
> |
struct Whowas *temp = node->data; |
112 |
|
|
113 |
|
if (temp->logoff < timelimit) |
114 |
|
continue; |