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.

Help pls (TCL Request)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
tHeaCme
Voice
Posts: 5
Joined: Wed Nov 01, 2006 9:30 pm

Help pls (TCL Request)

Post by tHeaCme »

If the nick, the fullname of the user who enters to the server matches with one of the nicks which I creadted I want it to be banned.

eg: The words inTXT
*merhaba*
*hale*
*selam*
*husnu*

In matching condition I need a tcl which bans directly. do you the any similar tcl.


the spammer bot's attacking way is like this:

it takes random string in front of or behind the the words in the list and it is delivered to the nicks or full name in this way.
Eg txt :
merhaba
osman
kazim

eg: it took kazim randomly from the line and made the nick kazimxx

other random took osman from the other line and made the realname xosman11

I think now it is more clear
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Use demond's xchannel.tcl, it can detect bad real names.
t
tHeaCme
Voice
Posts: 5
Joined: Wed Nov 01, 2006 9:30 pm

Post by tHeaCme »

Sir_Fz wrote:Use demond's xchannel.tcl, it can detect bad real names.
thats not what i looking for
t
tHeaCme
Voice
Posts: 5
Joined: Wed Nov 01, 2006 9:30 pm

Post by tHeaCme »

can anybody help me ?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Re: Help pls (TCL Request)

Post by rosc2112 »

tHeaCme wrote: In matching condition I need a tcl which bans directly. do you the any similar tcl.
Plenty of those in the tcl archive, including the one recommended already by sir_fz.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Code: Select all

set badnicks [list "*nick1*" "*nick2*" "*nick3*"] 

bind join - * ban:bnick 
bind nick - * ban:bnick 

proc ban:bnick {nick uhost hand chan {nn ""}} { 
global badnicks 
set bbanmask "*$nick*!*@*" 
if {$nn == ""} { set nn $nick } 
if {![isbotnick $nick]} { 
  foreach badnick $badnicks { 
   if {[string match -nocase  $badnick $nn]} { 
    putserv "KICK $chan $nick :Nickname not allowed on this channel!"
    putserv "KICK $chan $nick :Nickname not allowed on this channel!" 
    break 
   } 
  } 
 } 
}
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

That script doesn't actually make much sense if you don't mind me saying.

Also, why KICK the same nick twice?
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

metroid wrote:That script doesn't actually make much sense if you don't mind me saying.

Also, why KICK the same nick twice?

Guess one of the two kicks was meant to be a ban...why setting a banmask otherwise??
me likes me eggie :P
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

metroid wrote:That script doesn't actually make much sense if you don't mind me saying.

Also, why KICK the same nick twice?
I just simple threw it in from one of my scripts, wasn't going to alter it for them lol. However it works.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

set badnicks [list "*nick1*" "*nick2*" "*nick3*"]

bind join - * ban:bnick
bind nick - * ban:bnick

proc ban:bnick {nick uhost hand chan {nn ""}} {
  global badnicks
  if {$nn == ""} {
    set nn $nick
  }

  foreach badnick $badnicks {
    if {[string match -nocase  $badnick $nn]} {
      putquick "MODE $chan +b $nn!*@*"
      putserv "KICK $chan $nn :Nickname not allowed on this channel!"
    }
  }
}
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Oh well least im learning lol
Post Reply