Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-14-2005, 08:43 AM   #1
oldhouse
Member
 
Join Date: Sep 2005
Posts: 60
Default [Fixed] MP3 autonuke error

I get this error when enabling autonuke for mp3:

--------------------------------------------------09-14-2005 15:40:23 "C:\ioFTPD\scripts\ioBanana\ioAUTONUKE.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "relname": no such variable
while executing
"string match -nocase $relname [lindex $rule 0]"
(procedure "ismp3" line 7)
invoked from within
"$command "$sec" "$release" "0""
(procedure "anukecheck" line 40)
invoked from within
"anukecheck "mp3" "ismp3" "ANUKEMP3""
(procedure "autonuke" line 7)
invoked from within
"autonuke"
oldhouse is offline   Reply With Quote
Old 09-14-2005, 01:39 PM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Hehe, it looks like I've stripped too much code from this one. Here is the complete proc ismp3.
Code:
proc ismp3 {section name multi} {
global anuke
if {$multi == 1} {set relname [lindex [split $name /] end-1]} else {set relname [lindex [split $name /] end]}
set mp3info [split [getio "$name" "mp3"] |]
if {[llength $mp3info]==0} {return 0}
set bitrate [lindex $mp3info 1]; set year [lindex $mp3info 7]
foreach rule $anuke(mp3,$section) {
        if {[string match -nocase $relname [lindex $rule 0]] && $year >= [lindex $rule 1] && $bitrate >= [lindex $rule 2]} {
                return ""
        }
}
return "enforcing.our.mp3.rules"
}
Harm is offline   Reply With Quote
Old 09-17-2005, 08:36 AM   #3
yogi
Junior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 10
Default

hmm ist dosent work? so i get this err msg

Code:
--------------------------- ErrorInfo ----------------------------
can't read "anuke(allowed,mp3)": no such element in array
    while executing
"foreach group $anuke(allowed,$section) {
	if {[string match -nocase "*-$group" $relname]} {return ""}
}"
    (procedure "isallowed" line 4)
    invoked from within
"$command "$sec" "$release" "0""
    (procedure "anukecheck" line 40)
    invoked from within
"anukecheck "allowed" "isallo09-17-2005 15:30:13 "z:\ioFTPD\scripts\ioBanana\ioAUTONUKE.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
yogi is offline   Reply With Quote
Old 09-17-2005, 12:44 PM   #4
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

It does; your problem is a configuration error. You have enabled the "allowed groups only" check for the "mp3" section but you haven't specified the allowed groups.
Code:
set anuke(allowed,mp3) "GRP WHATEVER"
Harm is offline   Reply With Quote
Reply

Tags
autonuke, invoked, line, mp3, procedure

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 11:15 AM.

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