Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-01-2005, 10:24 AM   #1
scoonydeus
Junior Member
ioFTPD Foundation User
 
Join Date: Jul 2005
Posts: 13
Question [GENERAL] Need to understand the way NEWDIR: works

Hi,

I'm using:
ioFTPD version: 5-8-5r
ioBanana version: 2 (release 1)
and ioA ( the latest )

So, i'm trying to add extra functions to your wonderfull script, i undestand mainly the way it works. BUT...
I'm trying to catch the lines in the bot for the new release annoucement.

As far as i understand the script, the ioFTPD log everything in the ioFTPD.log, the bot search in this file for the "NEWDIR:" sequence to get Release Name and name of the poster, so it can set it as variable %pf and %user, %pf as Path... Hope i'm right.

So the bot send those variables to the ioB2.skin to get the skin and announce it.

I just need to know which part of the script search in the log to get thoses values and send them for the announce.

If someone can tell me that exactly...

Thanks all of you for your support.
scoonydeus is offline   Reply With Quote
Old 10-01-2005, 12:11 PM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

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.
Harm is offline   Reply With Quote
Reply

Tags
%pf, bot, release, script, search

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:53 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)