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 ... 23, 24, 25 ... 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
Domin
Halfop


Joined: 10 Jun 2006
Posts: 72

PostPosted: Sun Jul 23, 2006 6:19 am    Post subject: Reply with quote

Okie, lets try again, i did like this:

Code:
#
## 9 ## Swearing.
#

lappend ap:udefs {ap:swear "+ 99999 kb 2"}

set bwords(global) {
 *coolfm*
 "*coolfm*"
 *c00lfm*
 "*c00lfm*"
 *hard.fm*
 "*hard.fm*"
 "*Trancemission*"
 *Trancemission*
 *www.gabor13.com*
 "*www.gabor13.com*"
 "*C0oLFm*"
 *C0oLFm*
 *Co0LFm*
 "*co0lfm*"
}

set swear(kmsg) "Bad word detected. \[%date\] - Banned %btime minutes ·%kcount·"

set swear(wmsg) "Ja du er ikke velkommen her mere, hvis du mener dette er sket ved en fejl så PM Domin."

## Edit the following only if you choose a punish method above 5 (oper commands):

set swear(ktype) 2

set swear(klmsg) "Swearing is not permissable on this network."

set swear(ktime) 0


But if i edit this list, and do a ap:reset or any other way to get it to read the standard from the script it wont work, since the script dont seems to be able to reset the aplist file in the scripts dir, if i delete that manualy then it will take the settings from the tcl file again, hope this makes it more cleare as to what i mean.

I discoverede this becous i initialy loaded the script with the default settings from you, but no matter what i did and how i edited the list it still had the words you put in the bad words list, until i deleted the aplist file.

Btw, what is the difference between *word* and "*word*" ??
_________________
Regards
Domin @ efnet
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jul 23, 2006 6:28 pm    Post subject: Reply with quote

exhuman:
Alchera wrote:
Quote:
# Comment these two lines if you wish to enable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set

Restart your bot after doing the above and ".set errorInfo" will be available.


Domin: That's exactly what I said
Sir_Fz wrote:
AllProtection will override the default settings (for the lists) if they exist in the aplists file, that's why you need to use the .ap:add command to edit lists.

You need to add them via the .ap:add command and not by editing the script (that's why I added the DCC command!).

There's no difference at all between *bla* and "*bla*", you don't need the quotes unless the word contains spaces (for example: "*bla you*").
_________________
Follow me on GitHub

- Opposing

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


Joined: 22 Jul 2006
Posts: 9

PostPosted: Mon Jul 24, 2006 8:46 am    Post subject: Reply with quote

Please help me to understand this codes, an how i resolve it. I using Beta of AllProtection

(18:10) · (Cosa_Nostra · [12:42] Tcl error [::AllProtection::joins bidents]: no value given for parameter "chan" to "scan"
(18:10) · (Cosa_Nostra · [12:42] Tcl error [::AllProtection::joins clones]: no value given for parameter "hand" to "scan"
(18:10) · (Cosa_Nostra · [12:43] Tcl error [::AllProtection::control]: no value given for parameter "hand" to "scan"
(18:11) · (Cosa_Nostra · [12:43] Tcl error [::AllProtection::parts partmsgs]: can't read "v": no such variable
(18:11) · (Cosa_Nostra · [12:43] Tcl error [::AllProtection::joins bidents]: no value given for parameter "chan" to "scan"
(18:11) · (Cosa_Nostra · [12:43] Tcl error [::AllProtection::joins clones]: no value given for parameter "hand" to "scan"
(18:11) · (Cosa_Nostra · [12:44] Tcl error [::AllProtection::control]: no value given for parameter "hand" to "scan"
(18:12) · (Cosa_Nostra · [12:45] Tcl error [::AllProtection::control]: no value given for parameter "hand" to "scan"
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Jul 24, 2006 4:19 pm    Post subject: Reply with quote

exhuman: You have been asked once already to post the results of .set errorInfo, so why haven't you?

It would also appear that you have not unloaded another channel protection script (?) properly. In many cases a ".rehash" will not have the desired effect; ".restart" your bot instead.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Jul 29, 2006 10:06 pm    Post subject: Reply with quote

Quote:
[16:52] Tcl error [::AllProtection::notc notcl]: Usage: masktype <nick!user@host> [type]

A quick look at the 'masktype' proc indicates why:
Code:
proc masktype {name {type 3}} {
 if {[scan $name {%[^!]!%[^@]@%s} nick user host]!=3} {
  error "Usage: masktype <nick!user@host> \[type\]"
 }
....
}

.. unless a ban type of 3 is set an error will be generated.

My settings (note that some bans are set type 3):
Quote:
Cendrillon User defined channel strings:
Cendrillon ap:textl: {5:2 15 k:kb 2}
Cendrillon ap:textc: {215:3 30 kb 2}
Cendrillon ap:notcl: {1:3 30 kb 2}
Cendrillon ap:notcc: {200:3 30 kb 2}
Cendrillon ap:caps: {60:90 15 kb 2}
Cendrillon ap:codes: {r:35 b:80 u:80 c:80 30 kb 2}
Cendrillon ap:repeatl: {3:10 15 k:kb 2}
Cendrillon ap:repeatc: {25 15 w:k:kb 2}
Cendrillon ap:adv: {+ 30 kb 3}
Cendrillon ap:swear: {+ 15 kb 3}
Cendrillon ap:bnicks: {+ 15 3}
Cendrillon ap:drones: {+ 30 0 2}
Cendrillon ap:bidents: {+ 15 3}
Cendrillon ap:bchans: {- 30 kb 3}
Cendrillon ap:echans: {0 30 w:kb 3}
Cendrillon ap:ctcps: {2:30 30 kb 2}
Cendrillon ap:cjoin: {3:2 30 kb 2}
Cendrillon ap:massd: {5:1 10 kb 2}
Cendrillon ap:massk: {8:2 10 kb 2}
Cendrillon ap:massb: {18:2 30 kb 2}
Cendrillon ap:partmsgs: {180 30 kb 3}
Cendrillon ap:partmsgc: {r:35 b:35 u:35 c:35 30 kb 3}
Cendrillon ap:revdoor: {30 15 3}
Cendrillon ap:limit: 6
Cendrillon ap:nickf: {4:12 30 w:k:kb 2}
Cendrillon ap:clones: {0 30 kb 2}
Cendrillon ap:btextl: {15:7 mR-k lines.flood 60}
Cendrillon ap:btextc: {550:3 mR-k chars.flood 60}
Cendrillon ap:bnotcl: {4:2 mR-k lines.flood 60}
Cendrillon ap:bnotcc: {500:3 mR-k chars.flood 60}
Cendrillon ap:bctcp: {4:60 mR-k ctcp.flood 60}
Cendrillon ap:massjoin: {9:3 mR-k join.flood 60}
Cendrillon ap:brevdoor: {5:3 mR-k revdoor.flood 60}
Cendrillon ap:bpartmsg: {5:3 mR-k partmsg.flood 60}
Cendrillon ap:bnickf: {5:30 mR-k nick.flood 60}
Cendrillon ap:bcodes: {25:3 mR-k codes.flood 60}

.. a channel suffered a Botnet join flood in the past couple of hours and I noticed that certain bans were set @ type 2 and others @ type 3. This event did not trigger the above error: That appeared in the log all on its own.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Aug 03, 2006 6:26 pm    Post subject: Reply with quote

That error only occurs if the name argument passed to [masktype] does not match <nick>!<user>@<host>. That shouldn't happen in AP since what's being passed to [masktype] is always $nick!$uhost. I assume that this occurs on a server-notice where the uhost matches "" (or maybe the nick). This should be tested, but unfortunately a server-notice rarely occurs. You can add a check in the notice proc(s) to see if $nick == "" or $uhost == "" then do nothing - That should solve this problem.

I'm in Belarus (europe) right now and my access to the net is limited. I'll try to work on the script but I won't be able to test it myself, all in all I'll see if I can do any changes and release a new Beta.

Take care.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Aug 05, 2006 3:05 am    Post subject: Reply with quote

Better to be where you are now than where you were I'd imagine.

Allah Hafiz
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Aug 06, 2006 9:23 pm    Post subject: Reply with quote

Minor bug:
Code:

[10:32] * Darth-Vader sets mode +m #homec
[10:32] * Darth-Vader sets mode +R #homec
[10:32] * Darth-Vader removes channel keyword

....
Quote:
[10:35] -Darth-Vader/#homec- Channel has been locked due to flood, sorry for any inconvenience this may have caused.

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
AWoL
Voice


Joined: 14 Aug 2006
Posts: 6

PostPosted: Mon Aug 14, 2006 10:30 am    Post subject: all protection Reply with quote

The link for the all protection 4.6 beta seems to be down is there another site this can be downloaded from?
Back to top
View user's profile Send private message Send e-mail
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Aug 14, 2006 7:46 pm    Post subject: Re: all protection Reply with quote

AWoL wrote:
The link for the all protection 4.6 beta seems to be down is there another site this can be downloaded from?

Yes!

allprotection4.6b5
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
AWoL
Voice


Joined: 14 Aug 2006
Posts: 6

PostPosted: Mon Aug 14, 2006 11:10 pm    Post subject: Solved Reply with quote

Solved thank you
Back to top
View user's profile Send private message Send e-mail
TRaSH
Halfop


Joined: 26 Feb 2003
Posts: 56
Location: #Anime-Supreme

PostPosted: Wed Aug 16, 2006 11:08 am    Post subject: Reply with quote

i got a question about the clone detector,
in my channle i allow clones for people who are voiced.
can i exempt them seperatly from the clone detection ?
because i don't want to exempt them of the rest of the rules.
Back to top
View user's profile Send private message
AWoL
Voice


Joined: 14 Aug 2006
Posts: 6

PostPosted: Wed Aug 16, 2006 12:55 pm    Post subject: clone detector Reply with quote

At the top of the script, the author shows the exemptions that are automatically given, and further down you can set additional flags to exempt.

### READ THIS FIRST:
# * AllProtection exempts channel ops, friends (+f) and masters (+mo) from protection by default.
# That means users with the +f or +mo flags will not be affected by any protection.
# (You can add hosts to the +f handle if you don't want the bot to ban them). To prevent from banning
# ChanServ, add chanserv to your bot with the +f or +mo flag.


# Set here any additional exempts, you can use one of the following:
# 0: Neither voices nor halfops are exempted from punishment
# 1: Voices are exempted from punishment
# 2: Halfops are exempted from punishment
# 3: Both halfops and voices are exempted from punishment
set exmptype 3
Back to top
View user's profile Send private message Send e-mail
TRaSH
Halfop


Joined: 26 Feb 2003
Posts: 56
Location: #Anime-Supreme

PostPosted: Wed Aug 16, 2006 2:52 pm    Post subject: Reply with quote

but when i set it to option 1 or 3,
doesn't it mean a voiced user also can txt- flood the channel without getting punished ?
because i got it on set on 2 and the halfops in my channel that i didn't add to the bots users list with a +f are protected now also from every rule in the script.
so that doesn't seem to work then.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Aug 17, 2006 6:40 pm    Post subject: Reply with quote

Bots users with +f flags set will always be exempt from punishment; the script checks bot access as well as channel status.

Setting the exempt type to 3 works well if one does not wish to punish half-ops and voices. Only trusted users get either status anyway so there should be no problems.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
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 ... 23, 24, 25 ... 88, 89, 90  Next
Page 24 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