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 

Setting Channel Password in .conf File

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


Joined: 11 Mar 2009
Posts: 29

PostPosted: Tue Sep 08, 2009 5:52 am    Post subject: Setting Channel Password in .conf File Reply with quote

I know how to do this on the party line with .chanset but not being able to do it straight from the .conf file is really irritating me. Could anyone tell me what I'm doing wrong? Here is how I have it set up:

Code:

channel add #channel {
   need-key { putserv "join #channel passkey" }
   revenge-mode 3
}


Thanks.

***edit***
I do have channel and passkey set to the appropriate channel and passkey btw. Razz
Back to top
View user's profile Send private message
shai
Voice


Joined: 15 Sep 2009
Posts: 1

PostPosted: Tue Sep 15, 2009 3:27 pm    Post subject: Reply with quote

Did you ever manage? I too have a channel that needs a key and I need the bot to get in there using it.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Sep 15, 2009 5:51 pm    Post subject: Reply with quote

If it's just the setting you're looking for then use [channel set] instead of [channel add].
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Sep 15, 2009 7:41 pm    Post subject: Reply with quote

The statement you are using looks fine but am I right in thinking that it will be ignored once the static channel records have been created (the first time the bot is started)? Hence, if you added the need-key line later, then it would have no effect. Under those circumstances you would have to use .chanset to change the channel record or as Sir_Fz suggested use the Eggdrop Tcl equivalent 'channel set' somewhere appropriate.

If I am correct, then 1. kill the bot, 2. manually delete the .chan and .chan~bak files (if the latter exists), 3. restart the bot to recreate the channel file with whatever options are within the .conf 'channel add' statement.
_________________
I must have had nothing to do
Back to top
View user's profile Send private message
while
Voice


Joined: 11 Jul 2009
Posts: 34
Location: beat mort

PostPosted: Thu Sep 17, 2009 11:33 am    Post subject: Reply with quote

there is a tcl that saves the key for a channel or multiple channels. blackshadow i think made it. it uses public commands, if you want i can copy paste the tcl. and translate it in english.
Back to top
View user's profile Send private message
Callisto
Halfop


Joined: 13 Mar 2005
Posts: 86

PostPosted: Thu Sep 17, 2009 12:35 pm    Post subject: Reply with quote

A quick look through the tcl script archive and I found this. http://www.egghelp.org/tclhtml/348-4-0-0-1-chankey.htm

Pretty old but I have tested it and it works fine
Good luck
Back to top
View user's profile Send private message
rrc55
Voice


Joined: 11 Mar 2009
Posts: 29

PostPosted: Sun Sep 20, 2009 12:55 pm    Post subject: Reply with quote

arfer wrote:
The statement you are using looks fine but am I right in thinking that it will be ignored once the static channel records have been created (the first time the bot is started)? Hence, if you added the need-key line later, then it would have no effect. Under those circumstances you would have to use .chanset to change the channel record or as Sir_Fz suggested use the Eggdrop Tcl equivalent 'channel set' somewhere appropriate.

If I am correct, then 1. kill the bot, 2. manually delete the .chan and .chan~bak files (if the latter exists), 3. restart the bot to recreate the channel file with whatever options are within the .conf 'channel add' statement.


Very helpful. Thanks to all who replied.
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