summaryrefslogtreecommitdiff
path: root/commands.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands.js')
-rw-r--r--commands.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/commands.js b/commands.js
index 6bffb76..5ab1d5e 100644
--- a/commands.js
+++ b/commands.js
@@ -66,7 +66,7 @@ module.exports.joinChannel = function (channel, sendJoin) {
numChans++;
}
-function removeChannel(channel, sendPart) {
+module.exports.removeChannel = function(channel, sendPart) {
var channelObj = client.channel(channel)
chanId = $("[data-tab='"+channel+"'].chat").attr("data-id");
$("[data-tab='"+channel+"']").remove();
@@ -78,3 +78,11 @@ function removeChannel(channel, sendPart) {
}
$("[data-id="+(chanId-1)+"]").addClass("active");
}
+
+module.exports.whois = function(nick) {
+ client.whois(nick);
+}
+
+module.exports.list = function() {
+ client.raw("LIST")
+}