| View previous topic :: View next topic |
| Author |
Message |
tHeaCme Voice
Joined: 01 Nov 2006 Posts: 5
|
Posted: Wed Nov 22, 2006 7:33 pm Post subject: Help pls (TCL Request) |
|
|
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Nov 22, 2006 8:07 pm Post subject: |
|
|
Use demond's xchannel.tcl, it can detect bad real names. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
tHeaCme Voice
Joined: 01 Nov 2006 Posts: 5
|
Posted: Wed Nov 22, 2006 8:22 pm Post subject: |
|
|
| Sir_Fz wrote: | | Use demond's xchannel.tcl, it can detect bad real names. |
thats not what i looking for |
|
| Back to top |
|
 |
tHeaCme Voice
Joined: 01 Nov 2006 Posts: 5
|
Posted: Thu Nov 23, 2006 9:52 pm Post subject: |
|
|
| can anybody help me ? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Nov 24, 2006 1:09 am Post subject: Re: Help pls (TCL Request) |
|
|
| 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. |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Nov 28, 2006 12:51 am Post subject: |
|
|
| Code: | 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
}
}
}
} |
|
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Tue Nov 28, 2006 3:21 am Post subject: |
|
|
That script doesn't actually make much sense if you don't mind me saying.
Also, why KICK the same nick twice? |
|
| Back to top |
|
 |
dusk Halfop

Joined: 06 Mar 2005 Posts: 91 Location: Belgium
|
Posted: Tue Nov 28, 2006 5:57 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Nov 28, 2006 1:02 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Tue Nov 28, 2006 2:07 pm Post subject: |
|
|
| Code: | 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!"
}
}
} |
|
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Nov 28, 2006 4:49 pm Post subject: |
|
|
| Oh well least im learning lol |
|
| Back to top |
|
 |
|