Permalink
Browse files

add names#channel event

  • Loading branch information...
1 parent 73fea61 commit efc76788011da4d2216e215237289cf9d0913179 @ydnax ydnax committed Jan 6, 2013
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
@@ -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
@@ -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
@@ -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"

0 comments on commit efc7678

Please sign in to comment.