Skip to content

Commit

Permalink
Do not track custom plugins in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan0132 committed Sep 19, 2024
1 parent b5e41d6 commit 2165b3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc-no-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"tools/set-import/importer.js",
"tools/set-import/sets",
"tools/modlog/converter.js",
"server/global-variables.d.ts"
"server/global-variables.d.ts",
"server/custom-plugins/"
],
"env": {
"es6": true,
Expand Down
10 changes: 8 additions & 2 deletions server/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,16 @@ export class CommandContext extends MessageContext {
const curUser = Users.get(u);
if (!curUser || !curUser.connected) continue;
if (Server.ignoreEmotes[curUser.user.id]) {
curUser.sendTo(this.room, `${(this.room.type === 'chat' ? `|c:|${(~~(Date.now() / 1000))}|` : `|c|`)}${this.user.getIdentity(this.room)}|${message}`);
curUser.sendTo(
this.room,
`${(this.room.type === 'chat' ? `|c:|${(~~(Date.now() / 1000))}|` : `|c|`)}${this.user.getIdentity(this.room)}|${message}`
);
continue;
}
curUser.sendTo(this.room, `${(this.room.type === 'chat' ? `|c:|${(~~(Date.now() / 1000))}|` : `|c|`)}${this.user.getIdentity(this.room)}|/html ${emoticons}`);
curUser.sendTo(
this.room,
`${(this.room.type === 'chat' ? `|c:|${(~~(Date.now() / 1000))}|` : `|c|`)}${this.user.getIdentity(this.room)}|/html ${emoticons}`
);
}
this.room.log.log.push(`${(this.room.type === 'chat' ? `|c:|${(~~(Date.now() / 1000))}|` : `|c|`)}${this.user.getIdentity(this.room)}|${message}`);
this.room.game?.onLogMessage?.(message, this.user);
Expand Down

0 comments on commit 2165b3d

Please sign in to comment.