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 

warn once, then ban after 3 minutes

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


Joined: 17 Dec 2005
Posts: 21

PostPosted: Sat Jan 07, 2006 3:09 pm    Post subject: warn once, then ban after 3 minutes Reply with quote

hi, i've been trying to figure out how to do this but im totally lost.

Im tryin to get a script that will check a user's nickname on join for 2 things

1.) the word girl in the nick. if it sees girl it will ask the user once to change it, if they dont they will be banned in 3 minutes

2.) if a nick has numbers in it that are under 18 but excluding single digitals 10-17 maybe, (i.e.: kenola14 but not kenola1), it kick/ban the person and msg "you being banned because you are underage, if this incorrect please contact an op"

i was looking thru the forum, i could of swarn someone asked for something close to this a couple weeks ago but i couldnt find it

thanks in advance!
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Jan 07, 2006 7:33 pm    Post subject: Reply with quote

lol
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
avatar132
Voice


Joined: 17 Dec 2005
Posts: 21

PostPosted: Sat Jan 07, 2006 8:48 pm    Post subject: Reply with quote

lol?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Jan 07, 2006 11:08 pm    Post subject: Reply with quote

I don't know who you are really targeting, spammers and imposters or girls and children, but such naive effort won't stop anybody
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
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: Sat Jan 07, 2006 11:41 pm    Post subject: Reply with quote

Or maybe it's a gay channel Razz
_________________
Follow me on GitHub

- Opposing

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


Joined: 17 Dec 2005
Posts: 21

PostPosted: Sun Jan 08, 2006 2:19 am    Post subject: Reply with quote

Its a 18+ Cybersex channel, [edited]... its getting very popular, 48+ daily. Honestly i dont know why they like to cyber, done it once didnt like it.. but we are gettin alot of underage in, already got a few scripts set in place.. that are helping big time, most of them had to modify to my needs.
but we have a VERY strict poilcy on young people in here
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sun Jan 08, 2006 10:29 am    Post subject: Reply with quote

I agree with demond; such efforts will not stop perverts let alone kids. So, underage boys are ok to enter but not girls?

Seriously, have you tried setting a channel key? Some kids actually have trouble fathoming channel keys. Setting it +s or +p (private) may also help. There's no real TCL solution.
_________________
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 Jan 08, 2006 10:31 am    Post subject: Reply with quote

You don't have to explain yourself, and next time don't open a new topic about it. (it went directly into the junk yard)
Code:
bind join - "#gangbangsluts *" check:nick
bind time - * kick:girl

proc check:nick {n u h c} {
 global gotgirl
 if {[string match {*1[0234567]} $n]} {
  putserv "kick $c $n :Underaged user, if incorrect msg one of the ops."
  putserv "mode $c +b *!*@[lindex [split $u] 1]"
 } elseif {[string match -nocase *girl* $n]} {
  if {![info exists gotgirl([string tolower $n:[lindex [split $u @] 1]])]} {
   set gotgirl([string tolower $n:[lindex [split $u @] 1]]) [unixtime]
   puthelp "notice $n :You have 3 minutes to change your nick or else you'll get banned."
  }
 }
}

proc kick:girl {m args} {
 global gotgirl
 foreach {nu t} [array get gotgirl] {
  if {([unixtime] - $t)/60 >= 3} {
   if {[onchan [set n [lindex [split $nu :] 0]] #gangbangsluts]} {
    putserv "kick #gangbangsluts $n :You have the phrase girl in your nick which is against our chan's policy"
    putserv "mode #gangbangsluts +b *!*@[lindex [split $nu :] 1]"
   }
   unset gotgirl($nu)
  }
 }
}

_________________
Follow me on GitHub

- Opposing

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


Joined: 17 Dec 2005
Posts: 21

PostPosted: Sun Jan 08, 2006 11:38 am    Post subject: Reply with quote

Worked perfect Sir_Fz, thank you!

this script will also be servered as a learnning tool for myself, so i can understand some of the verablies... is there any good learner help sites for tcl?
Back to top
View user's profile Send private message
avatar132
Voice


Joined: 17 Dec 2005
Posts: 21

PostPosted: Sun Jan 08, 2006 11:41 am    Post subject: Reply with quote

Quote:
Alchera Said:
So, underage boys are ok to enter but not girls?

Surprisingly we dont have a problem with underage boys, maybe once or twice, but no where next needing to writing up a script for it
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 08, 2006 12:20 pm    Post subject: Reply with quote

avatar132 wrote:
this script will also be servered as a learnning tool for myself, so i can understand some of the verablies... is there any good learner help sites for tcl?

Suninet's Guide to Tcl Scripting for Eggdrop is a good start + Reading Tcl-commands.doc and the Tcl Commands Manual.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Jan 08, 2006 1:51 pm    Post subject: Reply with quote

avatar132 wrote:
Quote:
Alchera Said:
So, underage boys are ok to enter but not girls?

Surprisingly we dont have a problem with underage boys, maybe once or twice, but no where next needing to writing up a script for it


one would think it should be other way around Smile
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
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