Move condensedTypes to shared/
This decouples the rest of the server from the client
This commit is contained in:
@@ -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",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user