From b1e624c1491a64d2e493d5a48888ae701e1e321b Mon Sep 17 00:00:00 2001 From: Charlie McConnell Date: Fri, 2 Sep 2011 23:11:25 -0700 Subject: [PATCH] [api] Added selfMessage event - closes #17. --- lib/irc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/irc.js b/lib/irc.js index 1752716f..6c34d4e8 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -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);