I want to write a script which takes a log file and returns the uptime of some users.
This I want is help about the idea.
I have thought to save all chan users at 00:00 and then the next day on 00:00 to parse the channel log. How to parse it and extract the info I want? What about netsplits?
Sorry then, because I didn't explain well what i want to do.
This I want is to save the uptime for each user for every day (24 hours).
First of all i want to calculate the uptime of my eggdrop and after the uptime of the other users. And all of these for a day. Every night at 00:00 I just have to parse the logs and create a xml file for the previous day...
So even if the user was online for 20 hours (from 00:00 until 20:00) and he closed his client at 20:01 and returned to irc at 21:00, i want to have save the 20 hours that he was online.
you need to sum up all user appearences on the channel by parsing logs, or better yet (and much less complicated) by tracking user's presence on channel with a time counter (start counting when he/she joins, stop counting on quit, part, kick)