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.

list of people in a channel

Old posts that have not been replied to for several years.
Locked
N
Nada_Surf

list of people in a channel

Post by Nada_Surf »

I may be missing something here as I am quite new at this, but I am struggling to find a command that returns a list of who is on a channel that the bot is on.

the 'whom' function returns what i need, but only of people on the botnet, i need the entire channel listing.. i.e what the IRC command /who #channel does.

Any help or advice would be greatly appreciated!
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

Code: Select all

[chanlist #channel] 
this returns all the users in a channel, special cars marked with an { } around the name, all names seperated by " "
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It is actualy known as a Tcl list, so it can be easily cycled using the foreach command, or using lindex or lrange directly.
N
Nada_Surf

thanks

Post by Nada_Surf »

Thanks a lot!
Locked