1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

small changes

This commit is contained in:
marzavec 2024-03-04 11:30:09 -06:00
parent 511d00b8a3
commit 7b598a98d3
3 changed files with 4 additions and 5 deletions

View File

@ -978,8 +978,8 @@ var schemes = [
'rainbow',
'amoled',
'retro',
"Waifu",
"flamingo",
'Waifu',
'flamingo'
];
var highlights = [

View File

@ -97,7 +97,7 @@ export async function run({
},
};
// notify channel that the user has changed their name
// notify channel that the user has changed their color
// @todo this should be sent to every channel the user is in (multichannel)
server.broadcast(updateNotice, { channel: socket.channel });

View File

@ -41,7 +41,6 @@ export async function run({
payload.channel = socket.channel; // eslint-disable-line no-param-reassign
} else if (typeof payload.userid !== 'number') {
// @todo create multi-ban ui
if (typeof payload.userid !== 'object' && !Array.isArray(payload.userid)) {
return true;
}
@ -98,7 +97,7 @@ export async function run({
// Move all kicked clients to the new channel
for (let i = 0; i < kicked.length; i += 1) {
// @todo multi-channel update
// @todo Multichannel
kicked[i].channel = destChannel;
server.broadcast({