Skip to content
Snippets Groups Projects
  • rswindell's avatar
    642986c2
    Bug-fix: getuserdat() automatically calls resetdailyuserdat() when the laston · 642986c2
    rswindell authored
    date is not the current date (thus resetting all daily stats like logons today,
    posts today, etc.) - but resetdailyuserdat() failed to save the reset stats
    to the user.dat file because user->number was 0 at this point in getuserdat().
    
    This bug (reported by Finnigann) only effected non-BBS servers (like FTP, HTTP,
    etc.) since the BBS has its own checking of a new day and resetting of the
    daily stats for the user during logon (in logon.cpp).
    642986c2
    History
    Bug-fix: getuserdat() automatically calls resetdailyuserdat() when the laston
    rswindell authored
    date is not the current date (thus resetting all daily stats like logons today,
    posts today, etc.) - but resetdailyuserdat() failed to save the reset stats
    to the user.dat file because user->number was 0 at this point in getuserdat().
    
    This bug (reported by Finnigann) only effected non-BBS servers (like FTP, HTTP,
    etc.) since the BBS has its own checking of a new day and resetting of the
    daily stats for the user during logon (in logon.cpp).