From to ~taiite/public-inbox
NOTICE: This builds on top of https://lists.sr.ht/~taiite/public-inbox/%3C6d1ece52fe13c76727af16f1bcdf804e%40riseup.net%3E --- app.go | 16 +++++++++++++++- cmd/senpai/main.go | 32 ++++++++++++++++++++++++++++++++ ui/ui.go | 9 +++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index 6dc0da1..057e9ab 100644 --- a/app.go +++ b/app.go @@ -196,6 +196,10 @@ func (app *App) CurrentBuffer() (netID, buffer
From to ~taiite/public-inbox
From c5eeea64ac62bd1b5bb1ab40329c7d343abeeb43 Mon Sep 17 00:00:00 2001 From: the-y <the-y@riseup.net> Date: Fri, 17 Feb 2023 14:44:41 +0100 Subject: [PATCH] Fix cache files overwriting each other if using senpai with different config paths. We solve this problem by creating a hash of the configPath and prepend this to -lastbuffer.txt and -laststamp.txt --- cmd/senpai/main.go | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/cmd/senpai/main.go b/cmd/senpai/main.go index 6434182..b84c7c5 100644
From to ~taiite/public-inbox
From 0bd3b5c7966b136f5734d99f88acbd4c7af42e59 Mon Sep 17 00:00:00 2001 From: the-y <the-y@riseup.net> Date: Sat, 18 Feb 2023 03:10:09 +0100 Subject: [PATCH] Set app.lastMessageTime only ever to msg.time(), never to time.now() as the system time may not be correct/synced with the server. As senpai uses lastMessageTime to later retrieve the lastCloseTime, this also fixes sending CHATHISTORY TARGETS with the wrong time --- app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
From the-y to ~taiite/public-inbox
That's neat! Cool trick with the environment variable/proxy.FromEnvironment(). Would there be a way to combine it? So that you can set the proxy from settings/config file but also from the environment? I especially like the socks5://... uri. So having simply having proxy settings over socks5addr as I did in my patch. On 18.02.22 17:12, delthas wrote: > This adds support for SOCKS5 proxy support through standard environement > variables. > > To connect to the SOCKS5 proxy at host:port with credentials user:pass, > run: > > export ALL_PROXY=socks5://user:pass@host:port
From the-y to ~taiite/public-inbox
Hey hey, what a cool irc client, but i was in need for some socks5 support. Here are the changes i made. This is the first time i work on some go code and also the first time i send a patch in over email ^^ So of course open for any improvements on either end. Cheers --- app.go | 12 +++++++++++- config.go | 31 ++++++++++++++++++++++++------- doc/senpai.5.scd | 7 +++++++ go.mod | 3 ++- go.sum | 10 ++++++++++ 5 files changed, 54 insertions(+), 9 deletions(-) [message trimmed]