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.

Illegal channel option?

General support and discussion of Eggdrop bots.
Post Reply
n
nimrod
Voice
Posts: 1
Joined: Thu Apr 07, 2011 3:19 am

Illegal channel option?

Post by nimrod »

Here is the info from the shell
[07:24:50] Tcl error in file './eggdrop.conf':
[07:24:50] illegal channel option:   
illegal channel option:   
illegal channel option:   
illegal channel option:   
illegal channel option:   
illegal channel option:   
illegal channel option:   
while executing
"channel add #chan {
   chanmode "+tn"
   idle-kick 0
   flood-chan 5:4
   flood-join 5:10
   flood-ctcp 3:60
   flood-deop 0..."
(file "./eggdrop.conf" line 107)
[07:24:50] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
here are my channel settings
channel add #chan {
   chanmode "+tn"
   idle-kick 0
   flood-chan 5:4
   flood-join 5:10
   flood-ctcp 3:60
   flood-deop 0:0
   flood-kick 0:0
}
channel set #chan +enforcebans +dynamicbans -autoop -autovoice -protectops -protectfriends
I've used this config for ages never had any trouble with it until now :\
w
willyw
Revered One
Posts: 1202
Joined: Thu Jan 15, 2009 12:55 am

Re: Illegal channel option?

Post by willyw »

nimrod wrote: ...

while executing
"channel add #chan {
  ...
i've used this config for ages never had any trouble with it until now
\
Have you just upgraded to 1.6.20 ?

I believe that the
channel add
command is no longer usable.


See:
http://eggwiki.org/Eggdrop.conf#Channels
Adding channels via the config file is deprecated and discouraged. It is suggested that channels are added with the partyline .+chan command instead. Note that if channels are added this way, channel settings still has to be changed using .chanset The only difference between adding channels directly in the config file and using .+chan is that channels added via the config file will become static and can not be removed without removing them from the config file and then doing a .restart.
User avatar
caesar
Mint Rubber
Posts: 3777
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Are there any special characters in the channel name?
Once the game is over, the king and the pawn go back in the same box.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: Illegal channel option?

Post by speechles »

nimrod wrote:I've used this config for ages never had any trouble with it until now :\
The majority of tcl scripts will not work at all on your bot doing this. As most every script today, uses some form of .chanset to control which channels the script will function in. Channels created in the eggdrop.conf are created as static channels. They do not have any settings that can be changed. So using any of my scripts for example, google, twitter, etc.. will fail, giving you the error "Invalid Channel: #yourchan" and you will be unable to use them.

So learn how to properly use .+chan and .chanset. Never use that channel add section within your eggdrop.conf ever again. Willyw is correct, they've been deprecated, this was how early on eggdrop users would add channels. Today that setting is basically useless, since everyone uses .chanset.

So in short, yeah, learn .+chan and .chanset and modify settings on your bots partyline. This is the proper supported way. Any other way won't cut it, at least for users of my scripts and pretty much 90% of others... :P
Post Reply