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"];
|
|
|
|
|
|
|
|
exports.input = function(network, chan, cmd, args) {
|
2017-08-18 19:04:16 +00:00
|
|
|
var quitMessage = args[0] ? args.join(" ") : Helper.config.leaveMessage;
|
2016-04-14 08:56:02 +00:00
|
|
|
|
|
|
|
network.irc.quit(quitMessage);
|
|
|
|
};
|