~delthas

~delthas/senpai-dev

Last active 5 days ago
View more

Recent activity

[PATCH] Support upstream RPL_BOUNCE 23 days ago

From delthas to ~emersion/soju-dev

RPL_BOUNCE ("010") enables IRC server operators to add a load balancer
in front of multiple IRC server instances in order to redirect a client
to another server.

This is easier to use than DNS load balancing because it does not
require all servers to have a TLS certificate for the same domain.

We only process RPL_BOUNCE if received before being registered, which
should always be the case.

If the RPL_BOUNCE port field starts with a '+', we consider it to be
TLS.
---
Tested on my machine against a test server returning 010.
[message trimmed]

[PATCH] Order buffer members in a case-insensitive order 24 days ago

From delthas to ~emersion/goguma-dev

Previously, we would list nicks with an uppercase initial letter before
those with a lowercase nick.

This changes the logic so that we sort nicks in a case-insensitive
manner. There are no case insensitive compare functions in the Flutter
stdlib so we have to do a toLowerCase comparison. This is only run once
when opening buffer details so it should be OK wrt performance.
---
 lib/page/buffer_details.dart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/page/buffer_details.dart b/lib/page/buffer_details.dart
index 760ebbd..29abc05 100644
--- a/lib/page/buffer_details.dart
[message trimmed]

[PATCH] Add WHO cache a month ago

From delthas to ~emersion/soju-dev

From: Simon Ser <contact@emersion.fr>

This adds a new field to upstreams, members, which is a casemapped map
of upstream users known to the soju. The upstream users known to soju
are: self, any monitored user, and any user with whom we share a
channel.

The information stored for each upstream user corresponds to the info
that can be returned by a WHO/WHOX command.

We build the upstream user information both incrementally, capturing
information contained in JOIN and AWAY messages; and with the bulk user
information contained in WHO replies we receive.
[message trimmed]

Re: [PATCH] check word boundary on highlight a month ago

From delthas to ~delthas/senpai-dev

Hi,

> This patch checks for a `\b` on either side of the highlight terms, so 
> as to
> only trigger a highlight if the word occurs by itself. This incurs the 
> added
> overhead of compiling a small regex, but it should be well worth the 
> trade-off.

Thanks for your patch!

During a previous CPU profiling of senpai, I had noticed that running a 
regex on every incoming message had a non trivial cost, especially on 
application startup.

[PATCH v3] Add support for hex color code escapes a month ago

From delthas to ~emersion/goguma-dev

Hex color codes are easy to support and are useful for eg bridges in
order to match the nick color of the other user.
---
Fixed according to your comments :)

 lib/ansi.dart | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/lib/ansi.dart b/lib/ansi.dart
index f3fcee8..bfb01ce 100644
--- a/lib/ansi.dart
+++ b/lib/ansi.dart
@@ -127,15 +127,26 @@ List<TextSpan> applyAnsiFormatting(String s, TextStyle base) {
				bgColor = bg == 99 ? null : Color(colorHexCodes[bg]);
[message trimmed]

[PATCH v2] Add support for hex color code escapes a month ago

From delthas to ~emersion/goguma-dev

Hex color codes are easy to support and are useful for eg bridges in
order to match the nick color of the other user.
---
v2 to fix a typo in the color parsing

 lib/ansi.dart | 41 +++++++++++++++++++++++++++++++++++++----
 1 file changed, 37 insertions(+), 4 deletions(-)

diff --git a/lib/ansi.dart b/lib/ansi.dart
index f3fcee8..5625447 100644
--- a/lib/ansi.dart
+++ b/lib/ansi.dart
@@ -127,15 +127,26 @@ List<TextSpan> applyAnsiFormatting(String s, TextStyle base) {
				bgColor = bg == 99 ? null : Color(colorHexCodes[bg]);
[message trimmed]

[PATCH] Add support for hex color code escapes a month ago

From delthas to ~emersion/goguma-dev

Hex color codes are easy to support and are useful for eg bridges in
order to match the nick color of the other user.
---

I need this for my discord-ircv3 bridge :)
 lib/ansi.dart | 41 +++++++++++++++++++++++++++++++++++++----
 1 file changed, 37 insertions(+), 4 deletions(-)

diff --git a/lib/ansi.dart b/lib/ansi.dart
index f3fcee8..1457b92 100644
--- a/lib/ansi.dart
+++ b/lib/ansi.dart
@@ -127,15 +127,26 @@ List<TextSpan> applyAnsiFormatting(String s, TextStyle base) {
				bgColor = bg == 99 ? null : Color(colorHexCodes[bg]);
[message trimmed]

Re: [PATCH senpai] Add a config option to beep on highlight a month ago

From delthas to ~taiite/public-inbox

Thanks!

Pushed with minor edits:
- use on-highlight-beep rather than beep
- disable this feature by default

To git.sr.ht:~taiite/senpai
    f13aa04..e8ed8e7  master -> master

[PATCH] Display the Firebase error message in the exception 2 months ago

From delthas to ~emersion/goguma-dev

---
This is just a small patch I made offline while debugging issues.
Feel free to merge it if you like it.

 lib/firebase.dart | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/firebase.dart b/lib/firebase.dart
index fd95ebb..b22325f 100644
--- a/lib/firebase.dart
+++ b/lib/firebase.dart
@@ -31,7 +31,8 @@ Future<String> createFirebaseSubscription(String? vapidKey) async {
		}));
		var resp = await req.close();
[message trimmed]

[PATCH v3] Support @+draft/channel-context 2 months ago

From delthas to ~emersion/goguma-dev

This tag enables bots to specify the particular channel context the
message is related to.

See: https://todo.sr.ht/~emersion/goguma/80
See: https://github.com/ircv3/ircv3-specifications/issues/497
See: https://github.com/ircv3/ircv3-specifications/pull/498
---
 lib/client_controller.dart | 16 +++++++++++-----
 lib/firebase.dart          |  8 +++++++-
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/lib/client_controller.dart b/lib/client_controller.dart
index 89e0ce2..06a5373 100644
--- a/lib/client_controller.dart
[message trimmed]