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 

TCL vs limit abuse

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Jane`Lane
Voice


Joined: 30 Sep 2004
Posts: 15
Location: Rome, Italy

PostPosted: Thu Jun 15, 2006 4:59 pm    Post subject: TCL vs limit abuse Reply with quote

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 Wink
_________________
Being Jane Lane Is What I Do Best
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Jun 16, 2006 1:32 am    Post subject: Reply with quote

Code:

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] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Jane`Lane
Voice


Joined: 30 Sep 2004
Posts: 15
Location: Rome, Italy

PostPosted: Mon Jun 19, 2006 5:15 pm    Post subject: Reply with quote

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

and, by the way, where should I paste this code???
Quote:
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!!! Very Happy
_________________
Being Jane Lane Is What I Do Best
Back to top
View user's profile Send private message
Jane`Lane
Voice


Joined: 30 Sep 2004
Posts: 15
Location: Rome, Italy

PostPosted: Tue Jun 20, 2006 4:07 pm    Post subject: Reply with quote

...anyone knows??? Sad
_________________
Being Jane Lane Is What I Do Best
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Tue Jun 20, 2006 6:42 pm    Post subject: Reply with quote

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

Code:
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
Back to top
View user's profile Send private message Visit poster's website
Jane`Lane
Voice


Joined: 30 Sep 2004
Posts: 15
Location: Rome, Italy

PostPosted: Wed Jun 21, 2006 1:08 pm    Post subject: Reply with quote

...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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jun 21, 2006 7:18 pm    Post subject: Reply with quote

Does the other bot have +m flag on your bot? because that's the flag being exempted in demond's code.
_________________
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 Requests All times are GMT - 4 Hours
Page 1 of 1

 
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