Code: Select all
putdcc $idx "privmsg nickserv@services.dal.net :identify $antispam(cnick) password"
Code: Select all
putdcc $idx "privmsg nickserv@services.dal.net :identify $antispam(cnick) password"
That's what I thought... and I thought I had them all off, like this:Sir_Fz wrote:Everything underwillyw wrote:Excellent!
Which settings, and I will copy them here.
See.... I thought I had them all set off. ....I must be missing something.
Thanksis related to private floods.Code: Select all
########################### # PRIVATE PROTECTIONS # ###########################
Code: Select all
###########################
# PRIVATE PROTECTIONS #
###########################
# Set here if you want the bot to set a restriction mode on itself when flooded.
# example: +R is used on DALnet so only registered users can send to the bot.
# set this to "" if you don't wish to change your bot's modes during a flood.
# NOTE: Maximum 1 mode, less or more means it's disabled.
###set apfp(rmode) R
set apfp(rmode) ""
# Set here the time you want to keep the restriction mode in seconds.
###set apfp(rtime) 30
set apfp(rtime) 5
# How many seconds do you want to stop answering data from server?
##set apfp(itime) 45
set apfp(itime) 5
#
## 1 ## Private text floods.
#
# Private text (lines) flood <lines>:<seconds>. (0:0 to disable)
###set ptextl(punish) 12:6
set ptextl(punish) 0:0
# Private text (chars) flood <chars>:<seconds>. (0:0 to disable)
###set ptextc(punish) 750:6
set ptextc(punish) 0:0
#
## 2 ## Private notice floods.
#
###set pnotil(punish) 6:3
set pnotil(punish) 0:0
###set pnotic(punish) 600:4
set pnotic(punish) 0:0
#
## 3 ## Private CTCP/CTCR flood.
#
###set pctcpf(punish) 4:20
set pctcpf(punish) 0:0
# Configurations end here. #
Just make sure you set a password to that user.
What is the significance of setting a pw?
Bot has been restarted and rehashed plenty of times, since these changes were made... that's why I was surprised to see it do what I reported.Sir_Fz wrote:Make sure you .rehashed after changing these settings (since they're not dynamic).
Ok. Didn't know if there might be something new to me there.About the password advice, just an extra security measure to prevent accessing the partyline (although afaik it's not possible to access the partyline without a password).
I checked the code, I'm pretty sure that when the settings are set to 0:0 the script definitely won't react to private floods. Did this happen again after the restart?willyw wrote:Bot has been restarted and rehashed plenty of times, since these changes were made... that's why I was surprised to see it do what I reported.Sir_Fz wrote:Make sure you .rehashed after changing these settings (since they're not dynamic).
What do you make of it?
??Sir_Fz wrote:I checked the code, I'm pretty sure that when the settings are set to 0:0 the script definitely won't react to private floods. Did this happen again after the restart?willyw wrote:Bot has been restarted and rehashed plenty of times, since these changes were made... that's why I was surprised to see it do what I reported.Sir_Fz wrote:Make sure you .rehashed after changing these settings (since they're not dynamic).
What do you make of it?
Sure thing.Sir_Fz wrote:Would you mind pasting the content of procedure [pnotc]?
Code: Select all
proc pnotc {nick uhost hand arg dest} {
variable pnotil; variable pnotic
foreach {pntll pntls} [split $pnotil(punish) :] {break}
foreach {pntcl pntcs} [split $pnotic(punish) :] {break}
if {[isbotnick [lindex [split $dest @] 0]] && ![matchattr $hand fmo]} {
if {($pntll > 0 && [follow $pntls pnotl $pntll] != -1) || ($pntcl > 0 && [follow $pntcs pnotc $pntcl [string length $arg]] != -1)} {
privl NOTICE
}
}
}
[17:24] AP: Private botnet flood detected. Temporarly stopped answering recieved data.Sir_Fz wrote:Well there you have it, based on the logic in this procedure it's impossible for the script to trigger protection against private notices if the settings are set to 0:0. If you still wish to debug this, you can try '.tcl array list ::AllProtection::following' when the protection is triggered and paste the output here.
Sir_Fz wrote:My bad, I meant [array names] and not [array list].
Code: Select all
[19:41] AP: Private botnet flood detected. Temporarly stopped answering recieved data.
<mynick> .tcl array names ::AllProtection::following
<botnick> Tcl: pnotc rpt:6a6373a1a0cc54e39ec1868b58dd23c1 rpt:0b116253df5ad80969c09c62d9cf9d84
I seemed to remember you recommended 4.6b9 to me, and that it was some time ago, at that. Found it mentioned here:Sir_Fz wrote:willyw, I just tested it on my eggdrop using AllProtection4.6b9 and definitely when pnotil(punish) is set to 0:0 (or any other private flood setting for that matter), the script won't react on any private notice. However, in v4.6b8 that's not the case. Make sure you're using the latest version, that's all I can suggest since I made sure it's working correctly.
I believe I downloaded from: