Add support for soju.im/filehost

For now, only handle paste events containing files.

Co-authored-by: Alex McGrath <amk@amk.ie>
This commit is contained in:
Simon Ser 2024-04-16 13:22:24 +02:00
parent 97b9efcc9f
commit 87e88cccca
3 changed files with 93 additions and 0 deletions

View file

@ -526,6 +526,10 @@ export class Isupport {
}
return parseInt(this.raw.get("LINELEN"), 10);
}
filehost() {
return this.raw.get("SOJU.IM/FILEHOST");
}
}
export function getMaxPrivmsgLen(isupport, nick, target) {