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 

Ban user between a specific time

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


Joined: 22 May 2006
Posts: 2

PostPosted: Mon May 22, 2006 8:39 pm    Post subject: Ban user between a specific time Reply with quote

Hi everyone,

is there a way to create a script, which would kick users only when the join the channel on a specific time.

Example: User abc would like to be kicked from the channel from 09 am to 09 pm, as he should really work.
and if he joins after 9m to 8:59am the bot should not kick him.

It would be enough to state a time (like 98 m to 9 pm) and the option to kick only users with a specific flag on the bot. Like K for kick.

Is this possible??

Any help appreciated..


Greetz

Matz
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue May 23, 2006 5:34 pm    Post subject: Reply with quote

Code:
bind join K|K * kickK

proc kickK {nick uhost hand chan} {
 foreach {h m} [split [strftime %R] :] {break}
 if {[scan $h %d] >= 9 && [scan $h %d] <= 20} {
  putquick "kick $chan $nick :reason"
 }
}

_________________
Follow me on GitHub

- Opposing

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


Joined: 22 May 2006
Posts: 2

PostPosted: Wed May 24, 2006 4:06 pm    Post subject: Reply with quote

Thanks..

how do i state the reason??
and is it possible to create a ban..and this only from mondays to fridays?? Smile


Thanks in advance.. =)
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