This however will limit it to one channel you specify.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
#Set here the channels that you don't want the script to operate in.
set novoice(channels) "#chan1 #chan2 #chan3"
bind join - * voice:after
proc voice:after {nick uhost hand chan} {
set chan [string tolower $chan]
if {([lsearch -exact [string tolower $::novoice(channels)] $chan] >= 0)} {return}
utimer 30 [list pushmode $chan +v $nick]
}
Last edited by Alchera on Thu Feb 03, 2005 8:00 pm, edited 1 time in total.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
I suggest lseach -exact would be better, because it can support multiple channels and works good. I use the same when I want my scripts to function on certain channels.
But when comparing Alchera with lsearch, try to string tolower or string toupper both of the variables to match, because here you left out $chan. Both should be in the same case, because lsearch has no -nocase switch like string manipulation commands do. And try to use "-1" because lsearch gives only one output, not 0, not 1 only -1.
If == -1 (no match)
If != -1 (match)
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================