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:
parent
511d00b8a3
commit
7b598a98d3
|
@ -978,8 +978,8 @@ var schemes = [
|
||||||
'rainbow',
|
'rainbow',
|
||||||
'amoled',
|
'amoled',
|
||||||
'retro',
|
'retro',
|
||||||
"Waifu",
|
'Waifu',
|
||||||
"flamingo",
|
'flamingo'
|
||||||
];
|
];
|
||||||
|
|
||||||
var highlights = [
|
var highlights = [
|
||||||
|
|
|
@ -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)
|
// @todo this should be sent to every channel the user is in (multichannel)
|
||||||
server.broadcast(updateNotice, { channel: socket.channel });
|
server.broadcast(updateNotice, { channel: socket.channel });
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,6 @@ export async function run({
|
||||||
|
|
||||||
payload.channel = socket.channel; // eslint-disable-line no-param-reassign
|
payload.channel = socket.channel; // eslint-disable-line no-param-reassign
|
||||||
} else if (typeof payload.userid !== 'number') {
|
} else if (typeof payload.userid !== 'number') {
|
||||||
// @todo create multi-ban ui
|
|
||||||
if (typeof payload.userid !== 'object' && !Array.isArray(payload.userid)) {
|
if (typeof payload.userid !== 'object' && !Array.isArray(payload.userid)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -98,7 +97,7 @@ export async function run({
|
||||||
|
|
||||||
// Move all kicked clients to the new channel
|
// Move all kicked clients to the new channel
|
||||||
for (let i = 0; i < kicked.length; i += 1) {
|
for (let i = 0; i < kicked.length; i += 1) {
|
||||||
// @todo multi-channel update
|
// @todo Multichannel
|
||||||
kicked[i].channel = destChannel;
|
kicked[i].channel = destChannel;
|
||||||
|
|
||||||
server.broadcast({
|
server.broadcast({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user