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.

Total of users in that channel

Help for those learning Tcl or writing their own scripts.
Post Reply
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Total of users in that channel

Post by testebr »

Hi,

How to I can get the total of users in one channel?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

llength [chanlist #channel]
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

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.
Post Reply