mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
12 lines
247 B
JavaScript
12 lines
247 B
JavaScript
"use strict";
|
|
|
|
const socket = require("../socket");
|
|
const {vueApp} = require("../vue");
|
|
|
|
socket.on("nick", function(data) {
|
|
const network = vueApp.networks.find((n) => n.uuid === data.network);
|
|
|
|
if (network) {
|
|
network.nick = data.nick;
|
|
}
|
|
});
|