Skip to content

Commit

Permalink
[api] Added selfMessage event - closes #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed Sep 3, 2011
1 parent 9610fb9 commit b1e624c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ Client.prototype.part = function(channel, callback) { // {{{
} // }}}
Client.prototype.say = function(target, text) { // {{{
this.send('PRIVMSG', target, text);
this.emit('selfMessage', target, text);
} // }}}
Client.prototype.notice = function(target, text) { // {{{
this.send('NOTICE', target, text);
Expand Down

0 comments on commit b1e624c

Please sign in to comment.