| View previous topic :: View next topic |
| Author |
Message |
fayettemat Voice
Joined: 09 Jan 2007 Posts: 27
|
Posted: Thu Jan 11, 2007 3:19 pm Post subject: Need help with baning the exact domain |
|
|
ok so I'm working with scripts and all (some mine some others) but I cant figure out how to get it to ban some.host.domain for example instead of c-11-11-11-11.hdsl.ca.comcast.net it bans xxxxx.hdsl.ca.comcast.net! I know it can read the full hostname because its set as an admin any way to script it in to the ban to make it ban the full host name?
ps: This is on chatspace that it has problems |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Thu Jan 11, 2007 5:08 pm Post subject: |
|
|
Show us the code that makes it ban xxxxx.hdsl.ca.comcast.net _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
fayettemat Voice
Joined: 09 Jan 2007 Posts: 27
|
Posted: Thu Jan 11, 2007 5:48 pm Post subject: |
|
|
its in the AllProtection script (the latest) one sec I'll get it for you guys I'll post an edit when I get it
edit:
| Code: |
proc bnick:kick {nick uhost hand chan {nn ""}} {
global bnick
if {$nn == ""} { set nn $nick }
if {[string first # $chan] != 0} {return 0}
if {[channel get $chan ap:bnicks] != "+" || [invalid:apc $nn $hand $chan]} {return 0}
foreach badnick $bnick(nicks) {
if {[string match -nocase $badnick $nn]} {
putquick "KICK $chan $nn :[ap:mapr [mapall $bnick(kmsg) $chan $bnick(btime)] $badnick]"
if {$bnick(btype) >= 0} {
putquick "MODE $chan +b [set bmask [masktype $nn!$uhost $bnick(btype)]]"
if {($bnick(btime) > 0) && ([ap:istimer "pushmode $chan -b $bmask"] == "")} {
timer $bnick(btime) [list pushmode $chan -b $bmask]
}
}
break
}
}
}
|
I think thats what its using |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Jan 11, 2007 6:30 pm Post subject: |
|
|
The masktype proc in AllProtection is written by user and it does not change the hostmask. Btw, what do you mean by xxxx.? is it *.? if so then you might be using a ban-type that may do that (like ban-type 3 for example). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
fayettemat Voice
Joined: 09 Jan 2007 Posts: 27
|
Posted: Thu Jan 11, 2007 6:37 pm Post subject: |
|
|
| [17:36:06] * #Lobby Banlist: Thu Jan 11 13:43:37 *!*@xxxxx.47.140.67.ip.alltel.net Alex like that its what it bans instead of the real front or a * it bans xxxxx and that wont hold |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Thu Jan 11, 2007 7:37 pm Post subject: |
|
|
| Sir_Fz wrote: | | The masktype proc in AllProtection is written by user |
I wasn't aware people actually used that one. I posted an updated version: http://forum.egghelp.org/viewtopic.php?p=69607#69607
| fayettemat wrote: | | [17:36:06] * #Lobby Banlist: Thu Jan 11 13:43:37 *!*@xxxxx.47.140.67.ip.alltel.net Alex like that its what it bans instead of the real front or a * it bans xxxxx and that wont hold |
Sounds like the irc server is messing with you. Make sure the eggdrop sees the correct host (check .channel #somechan) _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
|