mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-26 01:00:28 +02:00
14 lines
273 B
JavaScript
14 lines
273 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();
|
|
};
|