and looks very familiar ( I don't have v4.5 in front of me at the moment)* AllProtection exempts channel ops, friends (+f) and masters (+mo) from protection by default.
Additional?# Set here any additional exempts, you can exempt the following:
# ops: Channel ops
# halfops: Channel halfops
# voices: Channel voices
# +flags|+flags: Users with global or channel specific flags (e.g. +fm friends and masters...)
# -flags&-flags: Users which do not have the specified flags (e.g. -k&-k)
variable exmptype {ops voices +fmo|+fmo}
Excellent!Sir_Fz wrote:I should probably change the word "Additional" as there are no built-in exempts any more. You can set the default exemptions in this setting as mentioned in its documentation. If you do not want to exempt channel operators then you can simply remove "ops" from the setting (same with other exempts). So yes, if you set it to {}, the bot won't exempt anyone.
is in the header still.* AllProtection does not use the internal banlist of the bot so you will not have to worry
# about other ops not being able to remove the bans, they can! (feature or bug, I dont care )
Sir_Fz wrote:The script can be altered a little bit to place internal bans instead of just channel bans. I'm at work right now so I don't have time to do it; try to fiddle around with the script and modify it (the banning lines are not more than two or three in the script...). It is a good idea to make it a configurable feature though, so I'll keep it in consideration.
Code: Select all
proc queue {c b} {
variable apqueue
if {$apqueue(time) < 1} {putquick "MODE $c +b $b"} {
lappend apqueue([string tolower $c]) $b
}
}
But I don't know how to pass to it all the parameters that it wants, from the variables in your script.newchanban <channel> <ban> <creator> <comment> [lifetime] [options]
Code: Select all
queue $c $bm
Code: Select all
queue $c $bm $bti [clonemap [mapall $km $c $bti] [incr cc]]
Code: Select all
proc queue {c b bt kr} {
Code: Select all
if {$apqueue(time) < 1} {putquick "MODE $c +b $b"} {
Code: Select all
if {$apqueue(time) < 1} {newchanban $c $b AllProtection $kr $bt} {
Code: Select all
if {$bti > 0 && [istimer "pushmode $c -b $bm"] == ""} {
timer $bti [list pushmode $c -b $bm]
}
Code: Select all
if {[onchan $jn $c] && ![punishing k:$jn:$c]} {
putquick "KICK $c $jn :[clonemap [mapall $km $c $bti] [incr cc]]"
}
Just curious... but why was it needed at all?Sir_Fz wrote:apqueue(time) is the time in seconds used for the queue timer. If it's set to 1 for example, the script will launch a timer which will queue bans and dump them every 1 second. So, suppose your bot issues 3 bans in 0.8 seconds before the proc is triggered, when the dump:queues procedure is triggered, the script will simultaneously set the three bans together (depending on your network that is). Now, in your situation, since you're going to use Eggdrop [newchanban] then you don't need AP's queue.
Thank you very much for taking time to do this for me, and anybody else that might be following along.I recommend the following changes to integrate Eggdrop's [newchanban]:
...
Here is a big question.3. Add kr and bt to procedure queue like this:Code: Select all
proc queue {c b kr bt} {
Code: Select all
proc queue {c b bt kr} {
Did you come back and add these lines? or did I just overlook them?...
Edit: You might want to remove the unban timer after setting the ban, so comment or remove the lines following the [queue] line:Code: Select all
if {$bti > 0 && [istimer "pushmode $c -b $bm"] == ""} { timer $bti [list pushmode $c -b $bm] }
and you can also remove the kick-line since [newchanban] does that already: (under "kb" in punish proc)Code: Select all
if {[onchan $jn $c] && ![punishing k:$jn:$c]} { putquick "KICK $c $jn :[clonemap [mapall $km $c $bti] [incr cc]]" }
This has been implemented to allow the eggdrop to queue as much bans as possible before dumping them to the server. It very much reduces the bot's possibility of flooding out in case of massive floods (where it would send to the server 10s of ban commands in seconds instead of stacking them in single commands).willyw wrote:Just curious... but why was it needed at all?Sir_Fz wrote:apqueue(time) is the time in seconds used for the queue timer. If it's set to 1 for example, the script will launch a timer which will queue bans and dump them every 1 second. So, suppose your bot issues 3 bans in 0.8 seconds before the proc is triggered, when the dump:queues procedure is triggered, the script will simultaneously set the three bans together (depending on your network that is). Now, in your situation, since you're going to use Eggdrop [newchanban] then you don't need AP's queue.
Yes, you are right, I accidentally flipped the order I edited my post now and corrected this "typo."willyw wrote:Here is a big question.3. Add kr and bt to procedure queue like this:Code: Select all
proc queue {c b kr bt} {
Using the above, it didn't seem to behave properly. With very limited understanding, I tried to follow the process.
I think the above might be a typo, in that the position of "kr" and "bt"
are inverted.
Using:here now, and it seems to do what it is supposed to now.Code: Select all
proc queue {c b bt kr} {
When you have time, could you look at it again, and let us know if this is the correct order for "bt" and "kr"?
Then I set the values for the antispam bot using dcc. I’ve disabled the idle-time and it was successful as the quote shows:# AntiSpamBot basic settings
# You can edit all these settings as you wish
# example: set antispam(nick) AntiSpamBot
set antispam(nick) PandaBear
set antispam(altnick) PandaBear`
# Antispam ident & real name
set antispam(user) vitality
set antispam(realname) "Warm n sunggly."
# example: set antispam(ip) 127.0.0.1
set antispam(ip) 64.18.132.28
# example: set antispam(host) my.lame.vhost.net
set antispam(host) snuggly.pand.as
Datum is my eggdrop v1.6.19.chanset #MyChannel ap:antispam "- 10"
<Datum> Successfully set modes { ap:antispam { "- 10" } } on #MyChannel.
Could somebody please help? I need it desperately, but I’ll wait patiently…<Datum> [00:01] AllProtection v4.6b9 by Opposing Loaded...