From 8f926d24d474da2ba5c7bc98090014278e87d4c0 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 28 Jun 2012 02:56:41 +0200 Subject: o Making the atom bot useful. --- irc-client.js | 1 + 1 file changed, 1 insertion(+) (limited to 'irc-client.js') diff --git a/irc-client.js b/irc-client.js index 1be71bf..c94d8e5 100644 --- a/irc-client.js +++ b/irc-client.js @@ -136,5 +136,6 @@ function dispatch(name) { IrcClient.prototype.notice = function() { this.irc.notice.apply(this.irc, arguments); } IrcClient.prototype.privmsg = function() { this.irc.privmsg.apply(this.irc, arguments); } IrcClient.prototype.topic = function() { this.irc.topic.apply(this.irc, arguments); } +IrcClient.prototype.whoami = function(cb) { cb(this.irc.whoami()); } module.exports.IrcClient = IrcClient; -- cgit v1.2.3