thelounge/client/js/socket-events/nick.js
2019-11-25 20:12:54 +02:00

12 lines
241 B
JavaScript

"use strict";
const socket = require("../socket");
const store = require("../store").default;
socket.on("nick", function(data) {
const network = store.getters.findNetwork(data.network);
if (network) {
network.nick = data.nick;
}
});