egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)
Goto page Previous  1, 2, 3 ... 43, 44, 45 ... 88, 89, 90  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Tue Jul 10, 2007 1:35 pm    Post subject: Reply with quote

Quote:
lappend ap:udefs {ap:notcl "1:3 2400 b 2"}


Quote:
*** d1fferent sets mode: +l 11
-samha1n:#KoHaT- hi
*** X sets mode: +l 8
*** d1fferent sets mode: +r


Quote:
((d1fferent): [22:32] AP: Locked #kohat due to Botnet notice (chars) flood.
((d1fferent): [22:32] -X (cservice@undernet.org)- Invalid ban duration. Your ban duration can be a maximum of 2400 hours.


still facing the same problem. I don't know why it sends 0 as a bantime even if you set 2400 as the bantime. or any other figure
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 10, 2007 4:03 pm    Post subject: Reply with quote

It does not send 0, it sends minutes/60 (i.e. that is converted to hours). No one else complained about such a problem, I can't help you with this. Perhaps another Undernet AllProtection user can help you with this Smile
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Tue Jul 10, 2007 5:27 pm    Post subject: Reply with quote

yeah i really need to get rid of this problem..... but the strange thing is that the bantime is set to 2400 so even if it converts it to hours it should work but it doesn't place that ban.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 10, 2007 6:49 pm    Post subject: Reply with quote

Zircon uses my script on Undernet and he always reports bugs/errors/suggestions. He can help you with your problem. Send him a private message.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
AskMe
Voice


Joined: 11 Apr 2007
Posts: 23
Location: Canada

PostPosted: Tue Jul 10, 2007 9:47 pm    Post subject: Reply with quote

i need your help again...

i put your script on windrop and it work perfect...

now i have install it on eggdrop and have sone prob...
Code:
[21:35] Tcl error [::AllProtection::ctcps caps]: Unknown channel setting.
[21:35] Tcl error [::AllProtection::ctcps repeatl]: Unknown channel setting.
[21:35] Tcl error [::AllProtection::ctcps textc]: Unknown channel setting.
[21:35] Tcl error [::AllProtection::ctcps textl]: Unknown channel setting


.set errorInfo
Code:
Currently: Unknown channel setting.
Currently: while executing
Currently: "channel get $c $cg"
Currently: (procedure "vcg" line 5)
Currently: invoked from within
Currently: "vcg $chan ap:$flood"
Currently: (procedure "::AllProtection::pubms" line 3)
Currently: invoked from within
Currently: "::AllProtection::pubms textl $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"


i try .ap:reset * and still have the same result


Last edited by AskMe on Tue Jul 10, 2007 10:23 pm; edited 4 times in total
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 10, 2007 9:49 pm    Post subject: Reply with quote

What Windrop version are you using?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Tue Jul 10, 2007 9:53 pm    Post subject: Reply with quote

Hello samhain

For me, it s fully working banning through X. And i just tested now again. I m having the same setting as you : ap:notcl: {1:3 2400 kb 2}

I sent a notice to the channel, here is the result :

-KickTesT:#Culture- (#Culture) test test test test test test test test test test
KickTesT kicked from #Culture by Anti-Flood: Notice not allowed. (1 lines in 0.0 secs) :: Banned 2400 minutes
#Culture: mode change '+b *!*@bas4-montreal28-1177918235.dsl.bell.ca' by X!cservice@undernet.org

And on Cservice, i saw that ban with these info :
Duration : 1 days, 16:00:00 [40 hour(s)]
Reason : Notice not allowed. (1 lines in 0.0 secs) :: Banned 2400 minutes

So it s working. By the way, in the settings of AllProtection, the ban-time is expressed in minutes. Since u r specifying 2400, it means 2400 minutes = 40 hours = 1 day and 16 hours, u can see this info in the ban duration displayed by Cservice.

So my suggestion is to download again AllProtection, and not edit the settings related to ban-time and punishment. And instead of that, change all the settings via the partyline. U ll have more latitude. In the partyline, u can do like this :

.chanset #channel ap:notcl 1:3 2400 kb 2
Replace #channel by the name of ur channel, or just put * if u want to appy this setting to all ur channels. By the way, if you want to ban for 100 days, then it s : 2400 hours x 60 = 144000 minutes, and then :
.chanset #channel ap:notcl 1:3 14400 kb 2

Hope this will help
Back to top
View user's profile Send private message
AskMe
Voice


Joined: 11 Apr 2007
Posts: 23
Location: Canada

PostPosted: Tue Jul 10, 2007 9:56 pm    Post subject: Reply with quote

my windrop 1.6.18 (the script is ok)

my eggdrop 1.6.18 (and this is where the script give me the error)

i remove the bot from a chan and now i have this error
Code:
[21:35] Tcl error [::AllProtection::joins clones]: can't read "pwait": no such variable
[21:35] Tcl error [::AllProtection::core]: can't read "pwait": no such variable


.set errorInfo
Code:
Currently: can't read "pwait": no such variable
Currently: while executing
Currently: "if {[unixtime]-[lindex $pe 1] > $pwait} {unset ptrig($pn)} "
Currently: (procedure "::AllProtection::core" line 23)
Currently: invoked from within
Currently: "::AllProtection::core $_time1 $_time2 $_time3 $_time4 $_time5"
Tcl error [::AllProtection::core]: can't read "pwait": no such variable


variable pwait 10 (setting in the script)
Back to top
View user's profile Send private message
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Wed Jul 11, 2007 1:54 am    Post subject: Reply with quote

thanks Zircon.... I'll try that... Smile thanks for your valueable suggestion
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Wed Jul 11, 2007 2:27 am    Post subject: Reply with quote

You are welcome samhain, and by the way, i went through ur copy of AllProtection. I noticed that all the ban-times you specified are 24. This wont work, coz ban-time are in minutes in AllProtection. Since 24 minutes is less than an hour, X cannot ban. The minimum duration for banning with X is 1 hour. So the minimum ban-time that u should use with AllProtection if you want to ban with X, is 60. Anything bigger than 60 will work.
Back to top
View user's profile Send private message
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Wed Jul 11, 2007 2:34 am    Post subject: Reply with quote

I tried 2400 too but it didn't work, but lets see what happens Wink
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jul 11, 2007 7:18 am    Post subject: Reply with quote

AskMe wrote:
my windrop 1.6.18 (the script is ok)

my eggdrop 1.6.18 (and this is where the script give me the error)

i remove the bot from a chan and now i have this error
Code:
[21:35] Tcl error [::AllProtection::joins clones]: can't read "pwait": no such variable
[21:35] Tcl error [::AllProtection::core]: can't read "pwait": no such variable


.set errorInfo
Code:
Currently: can't read "pwait": no such variable
Currently: while executing
Currently: "if {[unixtime]-[lindex $pe 1] > $pwait} {unset ptrig($pn)} "
Currently: (procedure "::AllProtection::core" line 23)
Currently: invoked from within
Currently: "::AllProtection::core $_time1 $_time2 $_time3 $_time4 $_time5"
Tcl error [::AllProtection::core]: can't read "pwait": no such variable


variable pwait 10 (setting in the script)

If it worked with windrop then there is no reason what so ever for it not to work on eggdrop. Download a fresh copy of the script, you must have something missing.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Sat Jul 14, 2007 3:01 pm    Post subject: Reply with quote

thanks zircon for helping me the script works fine now....
I was wondering about

join-flood protection sometimes on undernet we face netsplits and the users joins again in shape of a flood most of the joinflood protection script have this problem thats why i do not enable that option.... do you think allprotection script has this problem too if users after netsplits join the channel in shape of a flood the script will ban those users and consider those users as a joinflood?
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sat Jul 14, 2007 4:14 pm    Post subject: Reply with quote

Hello samhain

To avoid this problem, i changed the variable "wait-split" in the config file. In your conf file, u have this :
Quote:
# Set here the time (in seconds) to wait for someone to return from a netsplit
# (i.e. wasop will expire afterwards). Set this to 1500 on IRCnet since its
# nick delay stops after 30 minutes.
set wait-split 600

In this case, with thi value, if some users went in a split that last more than 600 sec (5 minutes), they may be counted in the join-flood when they will rejoin the channel. Since splits in undernet often last more than 5 minutes, i personnaly changed that value de 1800 sec ( 30 minutes).
Quote:
set wait-split 1800

Now i dont have anymore false join-flood.
Back to top
View user's profile Send private message
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Sun Jul 15, 2007 9:02 pm    Post subject: Reply with quote

ahh problem solved thanks Zircon Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 43, 44, 45 ... 88, 89, 90  Next
Page 44 of 90

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber