instance method IRC#names

View Source on GitHub →

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