nerdie/nerdie — pull request #7 by RyanHouston (2011-11-01 19:15:24+00:00)
Title: Add plugin hooks for user join/leave events

This allows plugins to register callbacks to be executed when a user enters or leaves a channel. I am using it with a logging plugin I developed to spit the chat logs to a file without all the cruft contained in the normal nerdie output.

```
this.pluginInterface.userJoin( function(msg) {
console.log(msg.user + " has joined " + msg.source);
});
this.pluginInterface.userLeave( function(msg) {
console.log(msg.user + " has left " + msg.source);
});
```