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.

Setting Channel Password in .conf File

General support and discussion of Eggdrop bots.
Post Reply
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Setting Channel Password in .conf File

Post by rrc55 »

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: Select all

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. :P
s
shai
Voice
Posts: 1
Joined: Tue Sep 15, 2009 3:25 pm

Post by shai »

Did you ever manage? I too have a channel that needs a key and I need the bot to get in there using it.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If it's just the setting you're looking for then use [channel set] instead of [channel add].
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

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
w
while
Voice
Posts: 34
Joined: Sat Jul 11, 2009 9:05 am
Location: beat mort

Post by while »

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.
C
Callisto
Halfop
Posts: 86
Joined: Sun Mar 13, 2005 11:04 am

Post by Callisto »

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
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

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.
Post Reply