Delete some files and undo server change
This commit is contained in:
parent
7b209e5d31
commit
3300276c27
@ -1,7 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const escape = require("css.escape");
|
|
||||||
|
|
||||||
module.exports = function(orig) {
|
|
||||||
return escape(orig.toLowerCase());
|
|
||||||
};
|
|
@ -1,5 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
module.exports = function tojson(context) {
|
|
||||||
return JSON.stringify(context);
|
|
||||||
};
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const $ = require("jquery");
|
const $ = require("jquery");
|
||||||
const socket = require("../socket");
|
const socket = require("../socket");
|
||||||
const {vueApp} = require("../vue");
|
const {vueApp, findChannel} = require("../vue");
|
||||||
|
|
||||||
socket.on("part", function(data) {
|
socket.on("part", function(data) {
|
||||||
// When parting from the active channel/query, jump to the network's lobby
|
// When parting from the active channel/query, jump to the network's lobby
|
||||||
@ -13,6 +13,9 @@ socket.on("part", function(data) {
|
|||||||
.trigger("click");
|
.trigger("click");
|
||||||
}
|
}
|
||||||
|
|
||||||
const network = vueApp.networks.find((n) => n.uuid === data.network);
|
const channel = findChannel(data.chan);
|
||||||
network.channels.splice(network.channels.findIndex((c) => c.id === data.chan), 1);
|
|
||||||
|
if (channel) {
|
||||||
|
channel.network.channels.splice(channel.network.channels.findIndex((c) => c.id === data.chan), 1);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
@ -35,7 +35,6 @@ exports.input = function(network, chan, cmd, args) {
|
|||||||
network.channels = _.without(network.channels, target);
|
network.channels = _.without(network.channels, target);
|
||||||
target.destroy();
|
target.destroy();
|
||||||
this.emit("part", {
|
this.emit("part", {
|
||||||
network: network.uuid,
|
|
||||||
chan: target.id,
|
chan: target.id,
|
||||||
});
|
});
|
||||||
this.save();
|
this.save();
|
||||||
|
@ -29,7 +29,6 @@ module.exports = function(irc, network) {
|
|||||||
chan.destroy();
|
chan.destroy();
|
||||||
client.save();
|
client.save();
|
||||||
client.emit("part", {
|
client.emit("part", {
|
||||||
network: network.uuid,
|
|
||||||
chan: chan.id,
|
chan: chan.id,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user