PDA

View Full Version : ioB2's sitebot tcl error msg


godlike
09-06-2005, 05:02 PM
I have this error when i try to start my eggdrop with loaded ioBanana.tcl:

[21:45] wrong # args: should be "lsearch ?mode? list pattern"
while executing
"lsearch -all -inline -glob $content "Pre_Group_*""
invoked from within
"set groups [lsearch -all -inline -glob $content "Pre_Group_*"]"
(file "scripts/iobanana.tcl" line 211)
invoked from within
"source scripts/iobanana.tcl"
(file "eggdrop.conf" line 147)
[21:45] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

I edited the ioBanana.tcl, and also tried to use the original one, same thing with both of them.

And i am interested why the rules doent display anymore upon browsing the dir on which rules are defined in rules.cfg. And site rules also doesnt work anymore: i used rules.nfo in some dir and also corrected the path and from rules.msg to rules.nfo but when i do site rules i only get 550 Command Failed. Worked nicely before also if it was .nfo file.

Thx for the answers in advance and greets.

ko0ky
09-06-2005, 06:35 PM
strange error. I've never seen it while running the iobv2.0 and eggdrop v1.6.17+SSL.

set rules(path) "C:/ioFTPD/scripts/rules.cfg"
set rules(msg) "C:/ioFTPD/scripts/rules.msg"

as long as you don't point to a real rules.cfg (which is a problem and is crashing iobanana) then pointing rules.msg to a valid location will get site rules up and working.

it was said somewhere im forums/documents or irc channel that Harm is preparing to document the new rules.cfg format. I'd be patient and give it just a bit of time.

Good luck

Mouton
09-06-2005, 07:06 PM
That line (211) parses the $content from the file opened at the line just above it:

set fp [open $ioBdat(ioacfg) r]; set content [split [read $fp] \n]; close $fp

ioBdat(ioacfg) should be your ioA config file, which is either absent or empty or something, making lsearch choke on $content which is not as it should be.

godlike
09-07-2005, 01:24 AM
Path to ioa.cfg is correct, and it`s there. And it`s also not empty or not readable or wahtever, because worked jst fine till i changed to iobv2. Worked with iobv20, and works with ioa.

About that rules. Yes probably my previous rules.cfg crashes it if harm changed the formating in it :confused: . I hope those updates on new formating come in soon.

(Yes it was the .cfg file, removed refrence to it, and now site rules works)

Harm
09-07-2005, 01:42 PM
Make sure the syntax of your Pre_* settings in ioA.cfg are correct. Search for some missing spaces or quotes.

The documentations update(s) will come. I'm pretty busy with my job and getting everything in order as I've just moved to another country.

godlike
09-13-2005, 03:33 AM
Tried everything. Then i just commented out that ioa affils parse from ioBanana.tcl, because i don`t need affils, quota, trial things. So i can live without this.