Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add names#channel event #129

Merged
merged 1 commit into from

3 participants

@ydnax

No description provided.

@ryancole

As simple as this may be, to you, it's generally helpful to add some sort of description of what you're adding, beyond the title.

@martynsmith martynsmith merged commit 35ee099 into martynsmith:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 6, 2013
  1. @ydnax

    add names#channel event

    ydnax authored
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 1 deletion.
  1. +6 −0 docs/API.rst
  2. +1 −0  lib/irc.js
  3. +4 −1 package.json
View
6 docs/API.rst
@@ -188,6 +188,12 @@ Events
callback is keyed by nick names, and has values '', '+', or '@' depending on the
level of that nick in the channel.
+.. js:data:: 'names#channel'
+
+ `function (nicks) { }`
+
+ As per 'names' event but only emits for the subscribed channel.
+
.. js:data:: 'topic'
`function (channel, topic, nick, message) { }`
View
1  lib/irc.js
@@ -317,6 +317,7 @@ function Client(server, nick, opt) {
var channel = self.chanData(message.args[1]);
if ( channel ) {
self.emit('names', message.args[1], channel.users);
+ self.emit('names' + message.args[1], channel.users);
self.send('MODE', message.args[1]);
}
break;
View
5 package.json
@@ -3,7 +3,10 @@
"description" : "An IRC client library for node",
"version" : "0.3.5",
"author" : "Martyn Smith <martyn@dollyfish.net.nz>",
- "contributors" : [],
+ "contributors" : [ {
+ "name": "xAndy",
+ "email": "xandy@hackerspace-bamberg.de"
+ } ],
"repository" : {
"type" : "git",
"url" : "http://github.com/martynsmith/node-irc"
Something went wrong with that request. Please try again.