2017-05-18 20:08:54 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const socket = require("../socket");
|
2018-07-08 12:18:17 +00:00
|
|
|
const {vueApp} = require("../vue");
|
2017-05-18 20:08:54 +00:00
|
|
|
|
|
|
|
socket.on("nick", function(data) {
|
2018-07-08 12:18:17 +00:00
|
|
|
const network = vueApp.networks.find((n) => n.uuid === data.network);
|
2018-02-20 07:28:04 +00:00
|
|
|
|
2018-07-08 12:18:17 +00:00
|
|
|
if (network) {
|
|
|
|
network.nick = data.nick;
|
2017-05-18 20:08:54 +00:00
|
|
|
}
|
|
|
|
});
|