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.

TCL vs limit abuse

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
J
Jane`Lane
Voice
Posts: 15
Joined: Thu Sep 30, 2004 7:22 pm
Location: Rome, Italy

TCL vs limit abuse

Post by Jane`Lane »

dear friends,
I was looking for a tcl script to
kick, ban and deflag people who perform action like remove the chan limit (-l) or change it.

I've found several scripts in the archive, but: the best one is written in deutch, and I can't understand anything .____.
moreover it just provides to kick...

can anyone help me and write this script???
thanks for your help ;)
Being Jane Lane Is What I Do Best
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

set reason "don't touch that dial"
bind mode - {% +l} foo
bind mode - {% -l} foo
proc foo {n u h c m v} {
   if ![botisop $c] return
   # ignore server and botmaster modes
   if {$n=="" || [matchattr $h m|m $c]} return
   # "deflag" the offending party
   if {$h != "*"} {chattr $h -o|-o $c}
   # ...and punish them with 10-min ban & kick
   newchanban $c [maskhost $n!$u] $::nick $::reason 10
   putkick $c $n $::reason
}
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
J
Jane`Lane
Voice
Posts: 15
Joined: Thu Sep 30, 2004 7:22 pm
Location: Rome, Italy

Post by Jane`Lane »

dear demond,
first of all, thanks for your answer!!!

and, by the way, where should I paste this code???
newchanban $c [maskhost $n!$u] $::nick $::reason 10
putkick $c $n $::reason
how can I add the kick reason???

furthermore, is this code able to kick user even if they just change the limit???

thanks again for helping!!! :D
Being Jane Lane Is What I Do Best
J
Jane`Lane
Voice
Posts: 15
Joined: Thu Sep 30, 2004 7:22 pm
Location: Rome, Italy

Post by Jane`Lane »

...anyone knows??? :(
Being Jane Lane Is What I Do Best
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Jane`Lane wrote:...anyone knows??? :(

Code: Select all

set reason "don't touch that dial" 
That takes care of where to plonk the reason.

Re-read demond's code, it is all there.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
J
Jane`Lane
Voice
Posts: 15
Joined: Thu Sep 30, 2004 7:22 pm
Location: Rome, Italy

Post by Jane`Lane »

...actually it doesn't work:
I added it on one of my eggdrops... and it banned another one, who has the rule to raise the limit!!!
Being Jane Lane Is What I Do Best
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Does the other bot have +m flag on your bot? because that's the flag being exempted in demond's code.
Post Reply