114 |
|
|
115 |
|
#ifdef _WIN32 |
116 |
|
nbytes = snprintf(buf, sizeof(buf), "[%s] %s\r\n", |
117 |
+ |
smalldate(CurrentTime), message); |
118 |
|
#else |
119 |
|
nbytes = snprintf(buf, sizeof(buf), "[%s] %s\n", |
119 |
– |
#endif |
120 |
|
smalldate(CurrentTime), message); |
121 |
+ |
#endif |
122 |
|
fbputs(buf, logFile, nbytes); |
123 |
|
} |
124 |
|
|
206 |
|
#ifdef SYSLOG_USERS |
207 |
|
if (IsClient(source_p)) |
208 |
|
{ |
209 |
< |
ilog(L_INFO, "%s (%3ld:%02ld:%02ld): %s!%s@%s %llu/%llu\n", |
210 |
< |
myctime(source_p->firsttime), |
211 |
< |
(signed long) on_for / 3600, |
212 |
< |
(signed long) (on_for % 3600)/60, |
213 |
< |
(signed long) on_for % 60, |
214 |
< |
source_p->name, source_p->username, source_p->host, |
214 |
< |
source_p->localClient->send.bytes>>10, |
215 |
< |
source_p->localClient->recv.bytes>>10); |
209 |
> |
ilog(L_INFO, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu", |
210 |
> |
myctime(source_p->firsttime), on_for / 3600, |
211 |
> |
(on_for % 3600)/60, on_for % 60, |
212 |
> |
source_p->name, source_p->username, source_p->host, |
213 |
> |
source_p->localClient->send.bytes>>10, |
214 |
> |
source_p->localClient->recv.bytes>>10); |
215 |
|
} |
216 |
|
#else |
217 |
|
{ |
238 |
|
if (user_log_fb != NULL) |
239 |
|
{ |
240 |
|
size_t nbytes = ircsprintf(linebuf, |
241 |
< |
"%s (%3ld:%02ld:%02ld): %s!%s@%s %llu/%llu\n", |
241 |
> |
"%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu\n", |
242 |
|
myctime(source_p->firsttime), |
243 |
< |
(signed long) on_for / 3600, |
244 |
< |
(signed long) (on_for % 3600)/60, |
245 |
< |
(signed long) on_for % 60, |
243 |
> |
on_for / 3600, |
244 |
> |
(on_for % 3600)/60, |
245 |
> |
on_for % 60, |
246 |
|
source_p->name, source_p->username, source_p->host, |
247 |
|
source_p->localClient->send.bytes>>10, |
248 |
|
source_p->localClient->recv.bytes>>10); |