latest sync

This commit is contained in:
marzavec
2025-03-27 22:05:23 -07:00
parent 85a6595ebe
commit 6915f8a543
4 changed files with 16 additions and 5 deletions
+2
View File
@@ -39,6 +39,7 @@ export function getSession(socket, core) {
isBot: socket.isBot,
level: socket.level,
nick: socket.nick,
flair: socket.flair,
trip: socket.trip,
userid: socket.userid,
uType: socket.uType,
@@ -136,6 +137,7 @@ export async function run({
socket.isBot = session.isBot;
socket.level = session.level;
socket.nick = session.nick;
socket.flair = session.flair;
socket.trip = session.trip;
socket.userid = session.userid;
socket.uType = session.uType;
+3 -2
View File
@@ -164,7 +164,8 @@ export function runKickCheck({
const input = payload.text.split(' ');
// If there is no nick parameter
if (!input[1]) {
const nick = input[1];
if (!nick || !nick.replace(/[^a-zA-Z0-9_]/g, '')) {
server.reply({
cmd: 'warn',
text: 'Failed to kick: Missing name. Refer to `/help kick` for instructions on how to use this command.',
@@ -181,7 +182,7 @@ export function runKickCheck({
socket,
payload: {
cmd: 'kick',
nick: input[1],
nick: nick.replace(/[^a-zA-Z0-9_]/g, ''),
},
});
+2 -1
View File
@@ -180,7 +180,8 @@ export const SystemMOTDs = [
'Protip: The owner of a channel can create moderators: /setlevel <trip> channelModerator',
'Protip: A moderator can kick people from the room: /kick <name>',
'Protip: Use /getchannels anytime to see a list of public channels',
'Protip: You can do ==/help== or ==/help command== ',
'Protip: You can do ==/help== or ==/help command==',
'Protip: Privately message with: /whisper @name The message',
];
/**