mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-10 09:42:18 +02:00
14 lines
274 B
JavaScript
14 lines
274 B
JavaScript
"use strict";
|
|
|
|
exports.commands = ["disconnect"];
|
|
exports.allowDisconnected = true;
|
|
|
|
exports.input = function (network, chan, cmd, args) {
|
|
const quitMessage = args[0] ? args.join(" ") : null;
|
|
|
|
network.quit(quitMessage);
|
|
network.userDisconnected = true;
|
|
|
|
this.save();
|
|
};
|