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.

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
B
Bhola420
Voice
Posts: 6
Joined: Sun Dec 05, 2010 9:16 pm

Post by Bhola420 »

i downloaded the fresh copy, and set channel limit to 0 to disable it, i had this :(

Code: Select all

<Sipahi> Rehashing.
<Sipahi> [04:31:07] Rehashing ...
<Sipahi> [04:31:07] AllProtection v4.7 successfully unloaded...
<Sipahi> [04:31:07] Listening at telnet port 48790 (all).
<Sipahi> [04:31:07] Listening at telnet port 48820 (all).
<Sipahi> [04:31:07] Listening at telnet port 48850 (all).
<Sipahi> [04:31:07] Listening at telnet port 48880 (all).
<Sipahi> [04:31:07] Listening at telnet port 48910 (all).
<Sipahi> [04:31:07] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
<Sipahi> [04:31:07] use '.help userinfo' for commands.
<Sipahi> [04:31:07] Tcl error in file 'Sipahi.conf':
<Sipahi> [04:31:07] unmatched open quote in list
<Sipahi>     while executing
<Sipahi> "lrange $apl 2 end"
<Sipahi>     (procedure "rd" line 5)
<Sipahi>     invoked from within
<Sipahi> "rd"
<Sipahi>     (procedure "load" line 49)
<Sipahi>     invoked from within
<Sipahi> "load"
<Sipahi>     (in namespace eval "::AllProtection" script line 2641)
<Sipahi>     invoked from within
<Sipahi> "namespace eval AllProtection {
<Sipahi> 
<Sipahi> # Basic declarations: (don't touch)
<Sipahi> variable declr
<Sipahi> foreach declr {textl textc notcl notcc capsp repeatf codesf adexemp..."
<Sipahi>     (file "scripts/allprotection4.7.tcl" line 151)
<Sipahi>     invoked
<Sipahi> [04:31:07] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Re: AllProtection v4.7: ap:nickf: {2:60 180 w:k:kb 2}

Post by Sir_Fz »

Diamond85 wrote:...

I now have a new problem: I have 2 nick changes made in 60 seconds.

if the user changes nicks now 2 times the bot will first warn then kick and then kickban.

the only thing he does is just warn. and then only after changing x nick kick. with reason Banned

...
Can you please apply the following, in the "nickf" clause inside procedure [nicks]. Replace $nick at line 1573 with $nn, so it should look like this:

Code: Select all

"nickf" {
 foreach {o s} [cgsplit $off] {break}
 if {[invalid:apf $o $s]} {return 0}
 checkf $s $o nckflood:[string tolower $uhost:$chan] $uhost $chan $pmeth $nn {$o changes} $btype $btime nickflood
}
Make sure you rehash and please tell me what happens.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Bhola420 wrote:i downloaded the fresh copy, and set channel limit to 0 to disable it, i had this :(
Please delete the file aplists and try again (it should be located in the scripts/ directory).
D
Diamond85
Voice
Posts: 27
Joined: Sat Oct 25, 2008 5:12 pm

Re: AllProtection v4.7: ap:nickf: {2:60 180 w:k:kb 2}

Post by Diamond85 »

Sir_Fz wrote: Can you please apply the following, in the "nickf" clause inside procedure [nicks]. Replace $nick at line 1573 with $nn, so it should look like this:

Code: Select all

"nickf" {
 foreach {o s} [cgsplit $off] {break}
 if {[invalid:apf $o $s]} {return 0}
 checkf $s $o nckflood:[string tolower $uhost:$chan] $uhost $chan $pmeth $nn {$o changes} $btype $btime nickflood
}
it works beautifully. many thanks! If I find another error, I say modest :P
s
samhain
Halfop
Posts: 77
Joined: Wed Jan 03, 2007 5:19 am

Post by samhain »

I've a problem using allprotection4.7b9.tcl it gives lots of errors... but the worst part is that the bot never saves the settings assigned by my commands in DCC... it goes back to the default settings everytime what could be the problem?
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Without some example of the errors you get how do you expect Sir_Fz to know what's going wrong in there? Mind reading? :)
Once the game is over, the king and the pawn go back in the same box.
User avatar
Tannn3r
Voice
Posts: 25
Joined: Thu Dec 23, 2010 11:58 pm

Post by Tannn3r »

Is it possible, or will it ever be possible, to disable/enable this script in specific channels?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

samhain wrote:I've a problem using allprotection4.7b9.tcl it gives lots of errors... but the worst part is that the bot never saves the settings assigned by my commands in DCC... it goes back to the default settings everytime what could be the problem?
Can't help you unless you provide error messages. You probably have invalid settings that's why the script automatically resets them. Use the correct format for every channel setting as advised in the script.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Tannn3r wrote:Is it possible, or will it ever be possible, to disable/enable this script in specific channels?
Of course it's possible and it has always been possible. Simple use '.ap:disable #channel' to disable the script on #channel (this is a console command).
User avatar
Tannn3r
Voice
Posts: 25
Joined: Thu Dec 23, 2010 11:58 pm

Post by Tannn3r »

Thanks! I never saw it when setting up the script, so I just wasn't sure.
s
samhain
Halfop
Posts: 77
Joined: Wed Jan 03, 2007 5:19 am

Post by samhain »

<boyega> join
* boyega was kicked by USARMY (Jan 09 -=USA=-: NO URL's/CHAN's/Advertise(r)s/E-mail(s)... (TRF: 1) (Auto))
* USARMY sets mode: +b *!*@119.153.18.81

This is a default word *join * added in the adwords section of allprotection, I removed it from the script restarted the bot, killed it and restarted it again, but it has that word saved in the adwords, same is the case with bwords. the default words saved aren't being removed.

<Babar-> .ap:list adwords global
<USARMY> AP: global adwords list: *join *,*plz visit*,*#*

and when I typed
<Babar-> .ap:rem adwords global *join *
<USARMY> AP: *join,* was not found in global adwords list.
it gives that error, can you please tell me how do I remove these words from the bot?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

samhain wrote:...
and when I typed
<Babar-> .ap:rem adwords global *join *
<USARMY> AP: *join,* was not found in global adwords list.
it gives that error, can you please tell me how do I remove these words from the bot?
That's not an error, that's an information message from the script. The script treats your input as separate words (i.e. "*join" and "*") that's why it can't find them. You need to do it like this:
.ap:rem adwords global "*join *"
s
samhain
Halfop
Posts: 77
Joined: Wed Jan 03, 2007 5:19 am

Post by samhain »

Yeah, it's working fine now... Thanks for giving such a wonderful TCL.
User avatar
Tannn3r
Voice
Posts: 25
Joined: Thu Dec 23, 2010 11:58 pm

Post by Tannn3r »

Hey, I'm back with anther question. :)

Is it currently possible to just have a single channel where voiced users aren't affected, instead of it being global?
s
samhain
Halfop
Posts: 77
Joined: Wed Jan 03, 2007 5:19 am

Post by samhain »

I don't think it's possible........... because the voice and operator exempted options are only available for global channels, those are not available for single channels. Instead, you can disable this option and add all those users to the eggdrop's userfile for a single channel. then it might be solved.
Post Reply