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