First, the routine that reads ioFTPD.log is the ioB:readiolog proc. This one reads every line added to ioFTPD.log and decides what to do with it.
Then, if the line corresponds to something that should be announced, it is sent to the ioB: parse proc (don't mind the space between the colon and the end of the proc name, it's to avoid the smiley). This one uses the skin file (which doesn't do anything by itself) and the $variables array to produce a human-readable announce.
Finally, the ioB:tsend proc is called to send the message to the correct channel.
The NEWDIR and DELDIR announces are a bit harder to use than the others because they're logged by ioFTPD itself and not ioBanana. ioBanana logs exactly what the bot needs.
Don't hesitate to ask for more details or how other functions are working.
|