| View previous topic :: View next topic |
| Author |
Message |
[Lt]im Voice
Joined: 09 Mar 2006 Posts: 17 Location: Kaunas - Lithuania
|
Posted: Fri Apr 21, 2006 11:08 am Post subject: Request script |
|
|
I need a script that will ban nick from chan if it not have @, but nick should have 20s time when joined chan to identify for his nick. Thanks.
(Sory for bad english) _________________ [Lt]im |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Apr 21, 2006 11:50 am Post subject: |
|
|
| Code: | set yourchan #channel
bind time - * checknotop
proc checknotop args {
global yourchan
foreach n [chanlist $yourchan] {
if {[unixtime]-[getchanjoin $n $yourchan] > 20 && ![isop $n $yourchan]} {
pushmode $yourchan +b *!*@[lindex [split [getchanhost $n $yourchan] @] 1]
putserv "kick $youchan $n :Only ops allowed here."
}
}
} |
This will check the channel every minute. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts
Last edited by Sir_Fz on Fri Apr 21, 2006 6:24 pm; edited 1 time in total |
|
| Back to top |
|
 |
[Lt]im Voice
Joined: 09 Mar 2006 Posts: 17 Location: Kaunas - Lithuania
|
Posted: Fri Apr 21, 2006 2:57 pm Post subject: |
|
|
Can You write full script? Becouse i get errors and dont know how to fix them. _________________ [Lt]im |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Apr 21, 2006 6:26 pm Post subject: |
|
|
Fixed it. Next time, paste the error; that's the logical move after all. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
[Lt]im Voice
Joined: 09 Mar 2006 Posts: 17 Location: Kaunas - Lithuania
|
Posted: Fri Apr 21, 2006 6:29 pm Post subject: |
|
|
Fixed it by my self... Anyway thank You. _________________ [Lt]im |
|
| Back to top |
|
 |
|