| View previous topic :: View next topic |
| Author |
Message |
hihachi Voice
Joined: 22 May 2006 Posts: 2
|
Posted: Mon May 22, 2006 8:39 pm Post subject: Ban user between a specific time |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue May 23, 2006 5:34 pm Post subject: |
|
|
| 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 |
|
 |
hihachi Voice
Joined: 22 May 2006 Posts: 2
|
Posted: Wed May 24, 2006 4:06 pm Post subject: |
|
|
Thanks..
how do i state the reason??
and is it possible to create a ban..and this only from mondays to fridays??
Thanks in advance.. =) |
|
| Back to top |
|
 |
|