| View previous topic :: View next topic |
| Author |
Message |
satmd Guest
|
Posted: Sun Aug 10, 2003 8:28 am Post subject: different channels - different settings? [possible solution] |
|
|
Hi.
I overthought some settings in netset.tcl and I see a way to make some of the settings really usable for multiple channels.
This way involves using setudef and channel get.
By now we have this innetset.tcl:
...
# repeat.tcl settings
set nb_component(repeat) 1
set rp_chans "#drawn-reality"
...
and some logic in repeat.tcl as well of course
My suggestion is to remove rp_chans and rp_echans completely and instead using this:
setudef flag "slennox-repeat" #or whatever you want to call it
(probably at the end of netset.tcl)
then... one could check [channel get #channel "slennox-repeat"] == 1 in order to see wether to apply repeat flood protections to #channel or not. This way would allow changing settings during run-time and having per-channel-settings without too much work.
You can use this setudef/channel get stuff not only for repeat flood protection but as well for sentinel as well e.g.
EDIT: settings would be done using .chanset then or in the bots' config file (like +nodesynch and so on)
The only thing I don't know is the required version of eggdrop for using setudef. |
|
| Back to top |
|
 |
|
|
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
|
|