mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-23 00:22:14 +02:00
2f635069e0
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
13 lines
225 B
JavaScript
13 lines
225 B
JavaScript
"use strict";
|
|
|
|
const socket = require("../socket");
|
|
const {findNetwork} = require("../vue");
|
|
|
|
socket.on("nick", function(data) {
|
|
const network = findNetwork(data.network);
|
|
|
|
if (network) {
|
|
network.nick = data.nick;
|
|
}
|
|
});
|