Here is a source patch I that creates a 'traffic' tcl command. It returns a list of lists of all the traffic information.
to install the patch:
download it from
http://home.dal.net/stdragon/eggdrop/tcl_traffic.patch
move it to the eggdrop/src directory
type 'patch < tcl_traffic.patch'
recompile eggdrop by typing 'make' and then 'make install'
The new command is called 'traffic'
It returns a list of lists like this:
{previous output, today's output, total output, previous input, today's input, total input}
There is one of these lists for irc, botnet, partyline, transfer.mod, and misc traffic (scripts).
The final list is for combined counts:
{previous combined output, today's combined output, total combined output, previous combined input, today's combined input, total combined input}