mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-12 03:06:50 +02:00
12 lines
245 B
JavaScript
12 lines
245 B
JavaScript
"use strict";
|
|
|
|
const Helper = require("../../helper");
|
|
|
|
exports.commands = ["disconnect"];
|
|
|
|
exports.input = function({irc}, chan, cmd, args) {
|
|
var quitMessage = args[0] ? args.join(" ") : Helper.config.leaveMessage;
|
|
|
|
irc.quit(quitMessage);
|
|
};
|