egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Illegal channel option?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
nimrod
Voice


Joined: 07 Apr 2011
Posts: 1

PostPosted: Thu Apr 07, 2011 3:34 am    Post subject: Illegal channel option? Reply with quote

Here is the info from the shell
Quote:

[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
Quote:

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 :\
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Apr 07, 2011 8:35 am    Post subject: Re: Illegal channel option? Reply with quote

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

Quote:

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.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Apr 07, 2011 9:02 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Apr 07, 2011 1:53 pm    Post subject: Re: Illegal channel option? Reply with quote

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... Razz
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber