This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Error in Badwords.

Old posts that have not been replied to for several years.
Locked
r
rudenstam

Error in Badwords.

Post by rudenstam »

When trying to start my bot I get this error (eggdrop 1.6.12)

[17:06] Tcl error in file 'secret.conf':
[17:06] invalid command name ""
while executing
"$warnings $expire $lu $q $type"
(procedure "mc:bw:inter:list" line 3)
invoked from within
"mc:bw:inter:list load -all"
(file "scripts/mc.badwords4.0.3.tcl" line 1611)
invoked from within
"source scripts/mc.badwords4.0.3.tcl"
(file "secret.conf" line 1318)
[17:06] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

I can't find anything wrong in the configuration at all..

Anybody have a clue ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Tcl error messages on startup, are rather information inclusive.

It gives details about each file the problems lies in.

in this case mc.badwords4.0.3.tcl within the scripts directory.

Looking at the error, it looks like you have hit return on one line without noticing, and saved the file.

Re-download the script, and it should solve the problems.
r
rudenstam

Post by rudenstam »

okey.. thnx :D
r
rudenstam

Post by rudenstam »

did as you said and redownloaded and configed it agin..
same error..

I't cant be some bug with the new eggdrop version ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Nope - it's the Tcl script.

The error message gives a precice location and problem.

It back traces through the script, to show where the error is. IE, it says what the error is, what code caused it, what proc it's in, what line in the proc, what file it's in, what made it load the file, until it get back as far as the bot loading the config file.

In this case, it's unable to execute a command called "", IE, a blank command. The line that is causing this is
$warnings $expire $lu $q $type

This is obviously on the wrong line, IE, it's been shifted down a line.

This may be due to you editing a long line, and the editor is wrapping it, or the editor is just wrapping the whole of the file on save.

I that, if you have to edit the file, you should use a editor that doesn't wrap lines.

If it had been eggdrop, the message would have stated so, or it would have given no information.
r
rudenstam

Post by rudenstam »

okey.. so use what ?

I usually use nano...
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Try pico on the shell. Just make sure you only edit the lines required and all will be fine.

To open a file, use
pico file.name

To save and exit do
CTRL+x
Y to answer yes
Now hit return to confirm the filename
r
rudenstam

Post by rudenstam »

isn't piko and nano kindoff the same thing ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I never tried nano, so I dunno
r
rudenstam

Post by rudenstam »

hehe.. okey.. well.. will try pico anyway..
r
rudenstam

Post by rudenstam »

aaargghhh

same error again!!!
Locked