UNPKG

thelounge

Version:

The self-hosted Web IRC client

20 lines (19 loc) 579 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commands = ["whois"]; const input = function ({ irc }, chan, cmd, args) { if (args.length === 1) { // This queries server of the other user and not of the current user, which // does not know idle time. // See http://superuser.com/a/272069/208074. irc.raw("WHOIS", args[0], args[0]); } else { // Re-assembling the command parsed in client.js irc.raw(`${cmd} ${args.join(" ")}`); } }; exports.default = { commands, input, };