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. In change protocol, changed the colors.
With user chat, the timeout timer wasn't refreshed. With user chat, the timeout timer wasn't refreshed.
Improved test for users protocol available. Improved test for users protocol available.
Fixed download K and files setting for users on a new day.
mbnewusr: mbnewusr:
Rewrote terminal i/o. Rewrote terminal i/o.

View File

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