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.

different channels - different settings? [possible solution]

Old posts that have not been replied to for several years.
Locked
s
satmd

different channels - different settings? [possible solution]

Post by satmd »

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.
Locked