src code

instance method IRC#names

IRC#names(channel, hollaback) → self
  • channel (String) – Channel to query
  • hollaback (Function) – Callback to receive the names list. The first argument is the channel, the second is an array of names.

Get a list of everyone in a channel.

Examples

irc_instance.names('#asl', function (channel, names) {
    this.privmsg(channel, 'Hi ' + names.join(', ') + '!');
}); // Say hi to everyone in the channel