| View previous topic :: View next topic |
| Author |
Message |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Tue Sep 08, 2009 5:52 am Post subject: Setting Channel Password in .conf File |
|
|
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.  |
|
| Back to top |
|
 |
shai Voice
Joined: 15 Sep 2009 Posts: 1
|
Posted: Tue Sep 15, 2009 3:27 pm Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Sep 15, 2009 5:51 pm Post subject: |
|
|
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 |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Sep 15, 2009 7:41 pm Post subject: |
|
|
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 |
|
 |
while Voice
Joined: 11 Jul 2009 Posts: 34 Location: beat mort
|
Posted: Thu Sep 17, 2009 11:33 am Post subject: |
|
|
| 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 |
|
 |
Callisto Halfop
Joined: 13 Mar 2005 Posts: 86
|
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Sun Sep 20, 2009 12:55 pm Post subject: |
|
|
| 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 |
|
 |
|