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',
|
||||
'amoled',
|
||||
'retro',
|
||||
"Waifu",
|
||||
"flamingo",
|
||||
'Waifu',
|
||||
'flamingo'
|
||||
];
|
||||
|
||||
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)
|
||||
server.broadcast(updateNotice, { channel: socket.channel });
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user