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 

Looking for little script here.

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


Joined: 10 Aug 2007
Posts: 14

PostPosted: Thu Jun 19, 2008 10:37 am    Post subject: Looking for little script here. Reply with quote

Hello,

this is the idea:

there is many of users useing the same ip from the same isp. so when my ops banned the user there is alot of users can't join the channel and the filter band will kick more than 1 user. so what am looking for is when the ops banned the isp range of user the bot will delete the ip from ban list and the bot banned the nick not the ip for example:

the range of isp is: 1- @78.89.*.* 2-@212.43.*.* .. etc

<op> sets mode: +b *!*@212.43.12.10
<Bot>sets mode: +b-bk nick!*@* *!*f@212.43.12.10 Protected.ISP

Hope it's clear and help many of users not only me..

My best regards.
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Thu Jun 19, 2008 11:43 am    Post subject: Reply with quote

If there are many users on the same ip, how is the bot to know which nick to use in the nickban?
Back to top
View user's profile Send private message Visit poster's website
yD^
Voice


Joined: 10 Aug 2007
Posts: 14

PostPosted: Sun Jun 22, 2008 8:17 pm    Post subject: Reply with quote

Hello again.

Then what about just unaband the ip and sending notice to the op who banned the ip to banned the nick not the ip.
example:-

<op> sets mode: +b *!*@212.43.12.10
<Bot>sets mode: -bk *!*f@212.43.12.10 Protected.ISP
Then sending the notice to the op nick to banned the nick not the ip
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Jun 22, 2008 10:43 pm    Post subject: Reply with quote

yD^ wrote:
Hello again.

Then what about just unaband the ip and sending notice to the op who banned the ip to banned the nick not the ip.
example:-

<op> sets mode: +b *!*@212.43.12.10
<Bot>sets mode: -bk *!*f@212.43.12.10 Protected.ISP
Then sending the notice to the op nick to banned the nick not the ip

Why not just set exempts for your users you wish to evade those global types of bans?
/mode +e nick!ident@host
Doesn't your network support exemptions? So for example, take below:
/mode +e *!*@78.89.*.*
/mode +e *!*@212.43.*.*
The problem with this, eggdrop might freak out and not realize why people can evade that ban. It will assume anarchy is reigning and it can't keep control, so will set +mi and try to kick everyone for massive join floods. But if set up properly, eggdrop will respect that exempt list. As a result, seeing the user rejoin after they kick/banned them, the op setting that ban will of course next ban the nickname, exactly as you desire.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Sun Jun 22, 2008 11:01 pm    Post subject: Reply with quote

Code:

bind mode - "* -b*" check:ban
proc check:ban {nick uhost hand chan mode dest} {
  set bancount 0
  foreach user [chanlist $chan] {
    if {[string match $dest *![getchanhost $nick]]} {
      incr bancount
      if {$bancount > 1} { break }
    }
  }
 
  if {$bancount > 1} {
    putquick "MODE $chan -bk $dest PROTECTED.IP"
  }
}


.. untested ..

edit: yea, exemptions would be better, if you know the nicks/ips you want exempted... otherwise, exemptions won't work i guess...
Back to top
View user's profile Send private message Visit poster's website
yD^
Voice


Joined: 10 Aug 2007
Posts: 14

PostPosted: Mon Jun 23, 2008 4:07 am    Post subject: Reply with quote

Thank you guys for your support,

but the +e won't let the op banned the nick or the ident and when you banned the nick or ident the user can join as he is not banned ever,
so if the bot unbanned the isp and sending notice the ops will banned the nick ,.
so i don't need the +e...

for the code above where i can put the ips ?
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Mon Jun 23, 2008 11:26 am    Post subject: Reply with quote

yD^ wrote:
for the code above where i can put the ips ?

Huh? You don't. The script checks if the ban will affect 1 user, and in this case does nothing. Or if it will affect more than 1, will remove the ban, and then remove the channel key with your message. There is no need to tailor a thing.
Code:
bind mode - "* +b*" check:ban

Might want to bind the mode to a +b (ban) rather than a -b (unban). Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon Jun 23, 2008 6:58 pm    Post subject: Reply with quote

speechles wrote:
Code:
bind mode - "* +b*" check:ban

Might want to bind the mode to a +b (ban) rather than a -b (unban). Wink


Good catch ;x
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