198 |
|
void |
199 |
|
log_user_exit(struct Client *source_p) |
200 |
|
{ |
201 |
< |
time_t on_for = CurrentTime - source_p->firsttime; |
201 |
> |
time_t on_for = CurrentTime - source_p->localClient->firsttime; |
202 |
|
#ifdef SYSLOG_USERS |
203 |
|
if (IsClient(source_p)) |
204 |
|
{ |
205 |
|
ilog(L_INFO, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu", |
206 |
< |
myctime(source_p->firsttime), (unsigned int)(on_for / 3600), |
206 |
> |
myctime(source_p->localClient->firsttime), (unsigned int)(on_for / 3600), |
207 |
|
(unsigned int)((on_for % 3600)/60), (unsigned int)(on_for % 60), |
208 |
|
source_p->name, source_p->username, source_p->host, |
209 |
|
source_p->localClient->send.bytes>>10, |
235 |
|
{ |
236 |
|
size_t nbytes = ircsprintf(linebuf, |
237 |
|
"%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu\n", |
238 |
< |
myctime(source_p->firsttime), |
238 |
> |
myctime(source_p->localClient->firsttime), |
239 |
|
(unsigned int)(on_for / 3600), |
240 |
|
(unsigned int)((on_for % 3600)/60), |
241 |
|
(unsigned int)(on_for % 60), |