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 

Kick some type of nick.

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


Joined: 08 Jul 2006
Posts: 3

PostPosted: Sat Jul 08, 2006 2:40 am    Post subject: Kick some type of nick. Reply with quote

I need a script to kick some type of nick:
Ex: Dona10 John11 Mona23 Kali27 Laura13
To kick evrey nick like this namenumber
and if somone /msg botnick !unban
to unban that ip nick Wink this is a solution for
some drone nick. Place help me.
Thanx.
Back to top
View user's profile Send private message
avilon
Halfop


Joined: 13 Jul 2004
Posts: 64
Location: Germany

PostPosted: Sat Jul 08, 2006 10:40 am    Post subject: Reply with quote

Code:
set droneRegEx {^[A-Z][a-z]{3,}[12][0-9]$}

bind join - * droneKick

proc droneKick {nick host hand chan} {
    if { [regexp -- ${::droneRegEx} $nick] } {
        newban $nick!*@* $::botnick "Your nick matches a pattern typical for certain spam drones."
    }
}

bind msg - !unban droneUnBan

proc droneUnBan {nick host hand arg} {
    if { [regexp -- ${::droneRegEx} $nick] } {
        killban $nick!*@*
        puthelp "NOTICE $nick :Done."
    }
}
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jul 08, 2006 7:50 pm    Post subject: Reply with quote

And when the nick rejoins, it will be banned again.
_________________
Follow me on GitHub

- Opposing

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


Joined: 13 Jul 2004
Posts: 64
Location: Germany

PostPosted: Sat Jul 08, 2006 9:26 pm    Post subject: Reply with quote

I don't see a problem there really?!
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Jul 08, 2006 9:34 pm    Post subject: Reply with quote

avilon wrote:
I don't see a problem there really?!


asel wrote:
and if somone /msg botnick !unban
to unban that ip nick


.. which I gather Sir_Fz was referring to.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jul 09, 2006 5:24 am    Post subject: Reply with quote

1) Dona12 joins the channel and gets banned
2) Dona12 is not a bot, so she msgs the bot !unban in order to be able to join the channel again.
3) Dona12 joins again, and she gets banned again.
4) The loop continues...
_________________
Follow me on GitHub

- Opposing

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


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun Jul 09, 2006 6:49 am    Post subject: Reply with quote

tell your users to think of better nicknames Smile
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