egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Total of users in that channel

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Wed Apr 09, 2008 5:15 pm    Post subject: Total of users in that channel Reply with quote

Hi,

How to I can get the total of users in one channel?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Apr 09, 2008 5:17 pm    Post subject: Reply with quote

Code:
llength [chanlist #channel]

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Wed Apr 09, 2008 5:59 pm    Post subject: Reply with quote

Thank you, work fine:

Code:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber