I would like to know how can I put the egg seeing how many peaple are on $chan, how many ops, and voices.
How can i do it ?

Ty.
Code: Select all
proc chan_users { channel } {
set all_users [chanlist $channel]
set ops 0
set voices 0
set normal 0
foreach chan_user $all_users {
if {[isop $chan_user]} {
incr ops 1
} elseif {[isvoice $chan_user]} {
incr voices 1
} {
incr normal 1
}
}
set all [llength $all_users]
return "$ops $voices $normal $all"
}
Code: Select all
1 0 3 4