Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 84ad412d52fc8dc00f742523c03523e87f94e7d2 Author: rani <clagv.randomgames@gmail.com> Date: Mon Mar 16 20:05:48 2026 +0000 support stripping nested plaintext (unformatted) quotes diff --git a/scripts/inmessage.tengo b/scripts/inmessage.tengo index 486c2ef..27e4aa7 100644 --- a/scripts/inmessage.tengo +++ b/scripts/inmessage.tengo @@ -167 +1610 @@ doQuote_ := func(reply, nick, ctx) {    stripQuote := func(ctx) { re := text.re_compile(`(?m)^> (?:-# )?↪ .+\n(?:> .*\n)+(.*)`) - return re.replace(ctx, "$1") + if re.match(ctx) { return re.replace(ctx, "$1") } + re = text.re_compile(`(?ms)^(.*?) \(in reply to .*?: .*\)$`) + if re.match(ctx) { return re.replace(ctx, "$1") } + return ctx  }    doQuote := func(...reStrs) {