2016-10-09 19:14:02 +00:00
|
|
|
"use strict";
|
|
|
|
|
2017-08-18 19:04:16 +00:00
|
|
|
const Helper = require("../../helper");
|
|
|
|
|
2016-04-14 08:56:02 +00:00
|
|
|
exports.commands = ["disconnect"];
|
|
|
|
|
2017-11-22 06:39:32 +00:00
|
|
|
exports.input = function({irc}, chan, cmd, args) {
|
2018-01-11 11:33:36 +00:00
|
|
|
const quitMessage = args[0] ? args.join(" ") : Helper.config.leaveMessage;
|
2016-04-14 08:56:02 +00:00
|
|
|
|
2017-11-22 06:39:32 +00:00
|
|
|
irc.quit(quitMessage);
|
2016-04-14 08:56:02 +00:00
|
|
|
};
|