Skip to content

add names#channel event #129

Merged
merged 1 commit into from Jan 20, 2013
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.