mirror of
https://github.com/thelounge/thelounge
synced 2024-12-25 03:43:12 +00:00
17 lines
329 B
JavaScript
17 lines
329 B
JavaScript
var _ = require("lodash");
|
|
|
|
module.exports = function(network, chan, cmd, args) {
|
|
if (cmd != "quit" && cmd != "disconnect") {
|
|
return;
|
|
}
|
|
|
|
var client = this;
|
|
var irc = network.irc;
|
|
|
|
client.networks = _.without(client.networks, network);
|
|
client.emit("quit", {
|
|
network: network.id
|
|
});
|
|
|
|
irc.quit();
|
|
};
|