this public command allws to voice a nick in a channel which part do i change to make it mass voice all non voiced users in the channel any help would be great
bind pub o|o !v pub:voice
proc pub:voice {nick uhost hand chan text} {
set vnick [lindex $text 0]
if {[onchan $vnick $chan]==1} {
if {[isvoice $vnick $chan]==1} {
putserv "NOTICE $nick :$vnick ha già il voice"
}
}
if {[onchan $vnick $chan]==1} {
if {[isvoice $vnick $chan]==0} {
pushmode $chan +v $vnick
putcmdlog "!$hand! voice $vnick"
return 0
}
}
if {[isvoice $nick $chan]} {
putserv "NOTICE $nick :tu hai già il voice."