Skip to content

Commit 49a9664

Browse files
committed
chore: Don't sanitize PartBot's own @here in Discord crosspings for Scavs
1 parent 625c40c commit 49a9664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps/handlers/raw/scavengers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function checkHunts(room: string, data: string) {
2525
const { type: huntType, maker } = huntStart.groups;
2626

2727
function post(message: string): void {
28-
const sanitized = unescapeHTML(message.replace(/@(?=here|everyone)/, '@\u200b'));
28+
const sanitized = unescapeHTML(message.replace(/(?<!^)@(?=here|everyone)/, '@\u200b'));
2929
huntChannel!.send(sanitized);
3030
}
3131

0 commit comments

Comments
 (0)