| View previous topic :: View next topic |
| Author |
Message |
yD^ Voice
Joined: 10 Aug 2007 Posts: 14
|
Posted: Thu Jun 19, 2008 10:37 am Post subject: Looking for little script here. |
|
|
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 |
|
 |
strikelight Owner

Joined: 07 Oct 2002 Posts: 708
|
Posted: Thu Jun 19, 2008 11:43 am Post subject: |
|
|
| 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 |
|
 |
yD^ Voice
Joined: 10 Aug 2007 Posts: 14
|
Posted: Sun Jun 22, 2008 8:17 pm Post subject: |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jun 22, 2008 10:43 pm Post subject: |
|
|
| 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 |
|
 |
strikelight Owner

Joined: 07 Oct 2002 Posts: 708
|
Posted: Sun Jun 22, 2008 11:01 pm Post subject: |
|
|
| 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 |
|
 |
yD^ Voice
Joined: 10 Aug 2007 Posts: 14
|
Posted: Mon Jun 23, 2008 4:07 am Post subject: |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Jun 23, 2008 11:26 am Post subject: |
|
|
| 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).  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
strikelight Owner

Joined: 07 Oct 2002 Posts: 708
|
Posted: Mon Jun 23, 2008 6:58 pm Post subject: |
|
|
| speechles wrote: | | Code: | | bind mode - "* +b*" check:ban |
Might want to bind the mode to a +b (ban) rather than a -b (unban).  |
Good catch ;x |
|
| Back to top |
|
 |
|