NAMES

The NAMES command is used to list users on specified channels, or all visible channels if none are specified.
Listing Users and Channels
Usage: NAMES [<channel>{,<channel>}]

Lists the users visible on the specified <channel>. If no <channel> is given, all visible channels and their users are listed.  If a channel name is given, information about that channel only is displayed.


(See section 4.2.5 of RFC 1459)