summaryrefslogtreecommitdiff
path: root/irc-client.js
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-28 02:56:41 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-28 02:56:41 +0200
commit8f926d24d474da2ba5c7bc98090014278e87d4c0 (patch)
tree36ff495a6372c894de9c105501f4d24c2b7bae88 /irc-client.js
parent2870c4da1aedf41926972dd60227c3d62cdaa123 (diff)
downloaddynobot-irc-master.tar.gz
dynobot-irc-master.tar.bz2
dynobot-irc-master.tar.xz
dynobot-irc-master.zip
o Making the atom bot useful.HEADmaster
Diffstat (limited to 'irc-client.js')
-rw-r--r--irc-client.js1
1 files changed, 1 insertions, 0 deletions
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;