Fixed users download reset

This commit is contained in:
Michiel Broek 2004-11-28 19:59:35 +00:00
parent 85166dd9cb
commit b58fb29f98
2 changed files with 5 additions and 2 deletions

View File

@ -46,6 +46,7 @@ v0.71.0 27-Oct-2004
In change protocol, changed the colors.
With user chat, the timeout timer wasn't refreshed.
Improved test for users protocol available.
Fixed download K and files setting for users on a new day.
mbnewusr:
Rewrote terminal i/o.

View File

@ -414,10 +414,12 @@ void user()
/*
* Give user new bytes and files every day if needed.
*/
if (LIMIT.DownK && LIMIT.DownF) {
if (LIMIT.DownK) {
usrconfig.DownloadKToday = LIMIT.DownK;
usrconfig.DownloadsToday = LIMIT.DownF;
}
if (LIMIT.DownF) {
usrconfig.DownloadsToday = LIMIT.DownF;
}
}
} /* End of else */