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.

Need help with baning the exact domain

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
f
fayettemat
Voice
Posts: 27
Joined: Tue Jan 09, 2007 6:10 pm

Need help with baning the exact domain

Post by fayettemat »

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
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Show us the code that makes it ban xxxxx.hdsl.ca.comcast.net
Have you ever read "The Manual"?
f
fayettemat
Voice
Posts: 27
Joined: Tue Jan 09, 2007 6:10 pm

Post by fayettemat »

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: Select all

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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).
f
fayettemat
Voice
Posts: 27
Joined: Tue Jan 09, 2007 6:10 pm

Post by fayettemat »

[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
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Sir_Fz wrote:The masktype proc in AllProtection is written by user
:shock: 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"?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

user wrote:
Sir_Fz wrote:The masktype proc in AllProtection is written by user
:shock: I wasn't aware people actually used that one. I posted an updated version: http://forum.egghelp.org/viewtopic.php?p=69607#69607
Updated for the next release :D Thank you.
Post Reply