This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
[Lt]im
- Voice
- Posts: 17
- Joined: Thu Mar 09, 2006 4:20 pm
- Location: Kaunas - Lithuania
Post
by [Lt]im »
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
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Code: Select all
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.
Last edited by
Sir_Fz on Fri Apr 21, 2006 6:24 pm, edited 1 time in total.
-
[Lt]im
- Voice
- Posts: 17
- Joined: Thu Mar 09, 2006 4:20 pm
- Location: Kaunas - Lithuania
Post
by [Lt]im »
Can You write full script? Becouse i get errors
and dont know how to fix them.
[Lt]im
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Fixed it. Next time, paste the error; that's the logical move after all.
-
[Lt]im
- Voice
- Posts: 17
- Joined: Thu Mar 09, 2006 4:20 pm
- Location: Kaunas - Lithuania
Post
by [Lt]im »
Fixed it by my self... Anyway thank You.
[Lt]im