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.
Help for those learning Tcl or writing their own scripts.
testebr
Halfop
Posts: 86 Joined: Thu Dec 01, 2005 12:22 pm
Post
by testebr » Wed Apr 09, 2008 5:15 pm
Hi,
How to I can get the total of users in one channel?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Apr 09, 2008 5:17 pm
testebr
Halfop
Posts: 86 Joined: Thu Dec 01, 2005 12:22 pm
Post
by testebr » Wed Apr 09, 2008 5:59 pm
Thank you, work fine:
Code: Select all
bind pub - !total total
proc total {nick uhost hand chan text} {
set total_nicks [llength [chanlist $chan]]
puthelp "privmsg $chan :Tem $total_nicks usuários no canal, mas confere manualmente contanto 1 por 1 porque eu sou meio ruim de soma."
}
ps: portuguese text output.