diff options
author | Joe Robinson <joe@lc8n.com> | 2016-10-16 20:38:10 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2016-10-16 20:38:10 +0100 |
commit | 63405f05a0406e55daf1fb4bfb00b324f2bf5f7e (patch) | |
tree | 2930a5475b06e4b40462319b955e1d634ee5c5e3 /commands.js | |
parent | f88564402afd517c01c4bd1e8bb4d8de8afc7690 (diff) |
Fix channel list function
Diffstat (limited to 'commands.js')
-rw-r--r-- | commands.js | 10 |
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") +} |