1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 13:16:36 +02:00

old server list wasn't being installed; default to DHTnodes in /usr/local/share/toxic

This commit is contained in:
Jfreegman
2014-03-04 03:10:07 -05:00
parent 6c9dbfe3bc
commit 41292c1ded
3 changed files with 9 additions and 34 deletions

View File

@ -100,10 +100,10 @@ void write_to_log(uint8_t *msg, uint8_t *name, struct chatlog *log, bool event)
uint64_t curtime = (uint64_t) time(NULL);
if (timed_out(log->lastflush, curtime, LOG_FLUSH_LIMIT))
if (timed_out(log->lastwrite, curtime, LOG_FLUSH_LIMIT))
fflush(log->file);
log->lastflush = curtime;
log->lastwrite = curtime;
}