With the AllFloodProtection script, It seems when I try to set ANY of the functions to - or 0:0 via the .tcl it ignores it, sure it works when you disable it thru DCC chat but say I wanted a large veriarty of the script disabled but NOT removed how would you do this?
# use .chanset #channel ap:textl <lines>:<seconds> (in DCC, 0:0 to disable)
# Set default rate here:
lappend ap:udefs {ap:textl 5:2}
It says, set default here but if I wanted the default to 0:0 it ignores it.
Sir_Fz care to help
Last edited by dq on Sat Apr 29, 2006 9:07 am, edited 1 time in total.
This is the dafault setting, which means that it is set on channels where you haven't edited the AP settings yet. For example, if you load the script for the first time, all channels will have these default settings but when you change these settings, the default setting will not apply on them anymore (that's why they're called default and not sticky).
Edit: I assume you know that these settings can be edited via DCC right? (i.e. .chanset #channel ap:textl 5:2)
Is there a way to make them sticky, and yes I know you can edit them via DCC, but I don't wanna have to edit each setting for the 1 channel, it would be extreamly handy if I could make it 'sticky' via the script.
Well, you don't have to edit each setting for each channel. You can use '*' via .chanset, example:
.chanset * ap:textl 5:2
this will change this setting on all channels. And it will never change unless you change it (same as the default settings, they remain the same untill you edit them).
Ok, once this is done are the settings stored in a file somewhere so I can copy/paste them into another file and change the channel name so I don't have to redo the settings all over again?