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 ... 60, 61, 62 ... 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
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Aug 24, 2008 11:48 am    Post subject: Reply with quote

You can disable the advertisement protection on your channel and add "!list" as a bad word instead.
_________________
Follow me on GitHub

- Opposing

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


Joined: 07 May 2008
Posts: 138

PostPosted: Tue Aug 26, 2008 2:49 am    Post subject: Reply with quote

Sir_Fz, could you add the "kick reason" for each channel separately to the next release, thanks in advance.

P.S.: great script Wink
Back to top
View user's profile Send private message
Casey952
Voice


Joined: 24 Jun 2008
Posts: 15

PostPosted: Fri Sep 05, 2008 7:37 pm    Post subject: Reply with quote

customized ban commands for extended bans etc and customized oper commands where you type in your own command might be nice to have.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Sep 05, 2008 7:53 pm    Post subject: Reply with quote

If you're talking about external commands for controlling the bot then that's outside the purpose of the script. If you're talking about customizing the commands used by the script, the ban command is the same on all networks so no need to configure it as for the oper commands, the only oper command used by the script is kline and it's customizable
Quote:
# Edit this only if your bot is an ircop and will use the kline command:
# Set here the kline command used on your server.
# for example some ircds user:
# kline %mask %time %reason
# others use:
# kline %time %mask %reason
## NOTE:
# %mask = the klined mask.
# %time = the kline time.
# %reason = the kline reason.
##
set kline(cmd) "kline %time %mask :%reason"

_________________
Follow me on GitHub

- Opposing

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


Joined: 24 Jun 2008
Posts: 15

PostPosted: Sat Sep 06, 2008 2:53 am    Post subject: Reply with quote

a custom ban mode that you can type in -- for extended bans if the Server has extended bans like

muteban -- +b m:nick!user@host

user can join the channel but not allowed to talk on main.


For the oper commands, I was thinking like G-Line, Shun, that you can also do on a custom command.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 06, 2008 8:43 pm    Post subject: Reply with quote

As you can see I'm currently not working on the script at all. However, I'll take your suggestions into consideration when I plan to continue tweaking the script.
_________________
Follow me on GitHub

- Opposing

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


Joined: 10 Aug 2003
Posts: 62

PostPosted: Thu Oct 09, 2008 5:51 am    Post subject: Reply with quote

I don't know if it's designed like this but:

Caps detection only works for a single word. if a user talks a whole sentence in caps and the detection rate is set for 90:20 it will not trigger. only if someone says a word with 20 letters or more and with 90% caps in it.

Another problem:

when you .restart the bot it forgets settings on certain channels. You'll have to set them all over again.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Oct 09, 2008 1:13 pm    Post subject: Reply with quote

Yes, that's how CAPS detection is designed: <CAPS rate>:<minimum text length>. So as you said 90:20 means that the script will check for 90% or more upper-case characters in a 20 or more characters long text.

The settings are never reset, they're in your bot's .chan file.
_________________
Follow me on GitHub

- Opposing

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


Joined: 10 Aug 2003
Posts: 62

PostPosted: Fri Oct 10, 2008 5:30 am    Post subject: Reply with quote

could you maybe add a detection for the Caps check for a whole sentence in the future?
Maybe ap:capsl.

About the reset, that's weird Wink
Thanks
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Oct 10, 2008 10:03 am    Post subject: Reply with quote

What do you mean whole sentence? It does check the whole sentence even if it's longer than the length you've assigned only it never triggers unless the CAPS percentage is breached.

Edit: Settings could be reset if they're invalid. For example if you set "90 120 kb 2" for ap:caps, the script resets it to the default value since "90" is invalid and should be in the form <percentage>:<length>.
_________________
Follow me on GitHub

- Opposing

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


Joined: 10 Aug 2003
Posts: 62

PostPosted: Sat Oct 11, 2008 8:52 pm    Post subject: Reply with quote

would that result in a reset for all the ap: protection settings?
Because I just tested it and restarted my bot and it reverted back to the default protection settings.

About that caps thing:

it does detect this with settings 90:10:
Quote:
CAPSLOCKTESTING


It does NOT detect:
Quote:
THIS IS A CAPS TEST WITH A WHOLE SENTENCE IN CAPS
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Oct 12, 2008 3:34 pm    Post subject: Reply with quote

dotslasher wrote:
would that result in a reset for all the ap: protection settings?
Because I just tested it and restarted my bot and it reverted back to the default protection settings.

About that caps thing:

it does detect this with settings 90:10:
Quote:
CAPSLOCKTESTING


It does NOT detect:
Quote:
THIS IS A CAPS TEST WITH A WHOLE SENTENCE IN CAPS

No, it only resets the invalid settings. For example, if ap:caps is invalid on #chan1 but valid on #chan2 it will only be reset on #chan1.

As for the caps issue, I tested it with 60:15 setting and it worked successfully:
Quote:
[22:28:00] <MastaPi> CAPSLOCKTESTING
[22:28:01] *** You were kicked by Shrider (Excess CAPS detected. (100% of 15 chars) :: [Sun Oct 12 14:30:33 2008] - Banned 120 minutes .16192.)
[22:28:32] *** Rejoined channel #testfz
[22:28:34] <MastaPi> THIS IS A CAPS TEST WITH A WHOLE SENTENCE IN CAPS
[22:28:35] *** You were kicked by Shrider (Excess CAPS detected. (79% of 49 chars) :: [Sun Oct 12 14:31:07 2008] - Banned 120 minutes .16193.)

Note that a white-space is considered a lower-case character thus the 79% value in the second kick message. Adjust your settings to a more suitable value if it's not suitable for you as it is right now.
_________________
Follow me on GitHub

- Opposing

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


Joined: 10 Aug 2003
Posts: 62

PostPosted: Sun Oct 12, 2008 5:56 pm    Post subject: Reply with quote

thanks for clearing that up Sir_Fz
Back to top
View user's profile Send private message
Lucifer
Voice


Joined: 01 Nov 2006
Posts: 17

PostPosted: Wed Oct 15, 2008 9:52 pm    Post subject: Error!!... or dunno whats wrong... Reply with quote

Hey F... hope u doin ok man, Just want to check why this Tcl dont ban on spammin With antispam, spammers only gt kicked without ban please can u check wats wrong am using the last version maybe...VERSION reply]: - Using AllProtection v4.6b8 by Opposing (aka Sir_Fz)


[16:45] * TheSummer was kicked by Freebsd (Advertising detected. (* #m*) :: [Thu Oct 16 02:43:27 2008] - Banned 180 minutes ·739·)
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Oct 16, 2008 5:16 pm    Post subject: Reply with quote

I tested it on my bot and it's working okay, kicks and bans the spammer. Possible reasons why you faced such a problem is that maybe the ban was already set on the channel, or for some reason the server did not react to the bot's ban request. One thing I'm sure about is that the script is doing its job.

Edit: This was actually a bug in AP4.6b8, it happens when the channel name is not completely lower-case. To avoid this problem, replace
Code:
lappend apqueue($c) $b

in proc "queue" with
Code:
lappend apqueue([string tolower $c]) $b

and it should be fixed.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
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 ... 60, 61, 62 ... 88, 89, 90  Next
Page 61 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