bind join - * join:autovoice
proc join:autovoice {nick host hand chan} {
if {$chan == "#lamers"} {
utimer 120 [autovoice $nick $chan]
}
}
proc autovoice {nick chan} {
if {![isop $nick $chan]} {pushmode $chan +v $nick}
}
bind join - * join:autovoice
proc join:autovoice {nick host hand chan} {
if {$chan == "#lamers"} {
utimer 120 [autovoice $nick $chan]
}
}
proc autovoice {nick chan} {
if {![isop $nick $chan]} {pushmode $chan +v $nick}
}
HecKel wrote:I want the egg voices an user without op after 2 minutes, then I create that..., bug now the eggs voices all users aswell oped users..., and don't wait the 2 minutes..., what is wrong?
Code: Select all
aop-delay autoop or autovoice delaytime
0:0 no delay
x:x x sec delaytime
x:y random delay, minimum x sec, maximum y sec
This code will do the same, I see no flag for the bind, it is empty meaning everyone and anyone will get a voice. A simple autovoice script with a delaying queue.HecKel wrote:yes, i read that, but i want that if an user isn't on eggs db he voice too
tnks HecKel
Code: Select all
bind join - "*" join:autovoice
proc join:autovoice {nick host hand chan} {
if {![isbotnick $nick] && [string equal -nocase "#lamers" $chan]} {
utimer 120 [list autovoice $nick $chan]
}
}
proc autovoice {nick chan} {
if {![isop $nick $chan] && ![isvoice $nick $chan]} {
pushmode $chan +v $nick
}
}
If you want to make it more simpler. But for this you will not need the second proc "autovoice", and also would not be able to check for if the nick was opped or voiced in the past 120 seconds or so.utimer 120 "pushmode $chan +v $nick"
half correct, pushmode won't send a +v command line to the server from someone he knows as beeing voiced (checked raw log from 1.6.18+notesfix). Thats one of many advantages from pushmode to putserv . however, since +o doesnt implict +v, it will of course voice someone who was opped .awyeah wrote:and also would not be able to check for if the nick was opped or voiced in the past 120 seconds or so.