Move condensedTypes to shared/

This decouples the rest of the server from the client
This commit is contained in:
Reto Brunner 2023-01-29 23:16:55 +01:00
commit b7540b5827
8 changed files with 34 additions and 39 deletions

View file

@ -4,3 +4,15 @@ const matchFormatting =
export function cleanIrcMessage(message: string) {
return message.replace(matchFormatting, "").trim();
}
export const condensedTypes = new Set([
"away",
"back",
"chghost",
"join",
"kick",
"mode",
"nick",
"part",
"quit",
]);