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 

Need help with baning the exact domain

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


Joined: 09 Jan 2007
Posts: 27

PostPosted: Thu Jan 11, 2007 3:19 pm    Post subject: Need help with baning the exact domain Reply with quote

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
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Thu Jan 11, 2007 5:08 pm    Post subject: Reply with quote

Show us the code that makes it ban xxxxx.hdsl.ca.comcast.net
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
fayettemat
Voice


Joined: 09 Jan 2007
Posts: 27

PostPosted: Thu Jan 11, 2007 5:48 pm    Post subject: Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jan 11, 2007 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fayettemat
Voice


Joined: 09 Jan 2007
Posts: 27

PostPosted: Thu Jan 11, 2007 6:37 pm    Post subject: Reply with quote

[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
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Thu Jan 11, 2007 7:37 pm    Post subject: Reply with quote

Sir_Fz wrote:
The masktype proc in AllProtection is written by user

Shocked 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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jan 11, 2007 9:10 pm    Post subject: Reply with quote

user wrote:
Sir_Fz wrote:
The masktype proc in AllProtection is written by user

Shocked 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 Very Happy Thank you.
_________________
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