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 

Help pls (TCL Request)

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


Joined: 01 Nov 2006
Posts: 5

PostPosted: Wed Nov 22, 2006 7:33 pm    Post subject: Help pls (TCL Request) Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Nov 22, 2006 8:07 pm    Post subject: Reply with quote

Use demond's xchannel.tcl, it can detect bad real names.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
tHeaCme
Voice


Joined: 01 Nov 2006
Posts: 5

PostPosted: Wed Nov 22, 2006 8:22 pm    Post subject: Reply with quote

Sir_Fz wrote:
Use demond's xchannel.tcl, it can detect bad real names.


thats not what i looking for
Back to top
View user's profile Send private message
tHeaCme
Voice


Joined: 01 Nov 2006
Posts: 5

PostPosted: Thu Nov 23, 2006 9:52 pm    Post subject: Reply with quote

can anybody help me ?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Nov 24, 2006 1:09 am    Post subject: Re: Help pls (TCL Request) Reply with quote

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


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Nov 28, 2006 12:51 am    Post subject: Reply with quote

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


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue Nov 28, 2006 3:21 am    Post subject: Reply with quote

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


Joined: 06 Mar 2005
Posts: 91
Location: Belgium

PostPosted: Tue Nov 28, 2006 5:57 am    Post subject: Reply with quote

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 Razz
Back to top
View user's profile Send private message MSN Messenger
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Nov 28, 2006 1:02 pm    Post subject: Reply with quote

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


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue Nov 28, 2006 2:07 pm    Post subject: Reply with quote

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


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Nov 28, 2006 4:49 pm    Post subject: Reply with quote

Oh well least im learning lol
Back to top
View user's profile Send private message
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