06-03-2004, 12:51 AM
|
#2 |
| Too much time... FlashFXP Beta Tester ioFTPD Scripter
Join Date: May 2003
Posts: 1,364
|
Well the logical reason ioFTPD updates the userfiles after the scripts have finished running is in the event that a script returns non-zero to block/invalidate the action. If you return non-zero on for an OnUploadComplete event, ioFTPD doesn't update the userfiles, no point adding the credits and stats if the file was deleted. (Then it would take a second update to remove the stats.)
Why not just retrieve the file size, (for credits: multiply by the user's ratio for that particular credit section) read the userfile and add the stats to the appropriate credit or stats section. (Tcl vars: $creditsection and $statssection)
|
| |