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"];
|
|
|
|
|
2018-08-25 09:11:59 +00:00
|
|
|
exports.input = function(network, 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
|
|
|
|
2018-08-25 09:11:59 +00:00
|
|
|
network.irc.quit(quitMessage);
|
|
|
|
|
|
|
|
network.userDisconnected = true;
|
|
|
|
this.save();
|
2016-04-14 08:56:02 +00:00
|
|
|
};
|