~emersion/soju-dev

Drop TAGMSG in detached channels v1 APPLIED

Hubert Hirtz: 1
 Drop TAGMSG in detached channels

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/22173/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Drop TAGMSG in detached channels Export this patch

- Do not relay TAGMSG as notices,
- Do not reattach when a TAGMSG is received,
- Do not reset the detach timer when a TAGMSG is received.
---
 upstream.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upstream.go b/upstream.go
index f083c0b..45ae276 100644
--- a/upstream.go
+++ b/upstream.go
@@ -425,7 +425,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
			}

			ch := uc.network.channels.Value(target)
			if ch != nil {
			if ch != nil && msg.Command != "TAGMSG" {
				if ch.Detached {
					uc.handleDetachedMessage(msg.Prefix.Name, text, ch)
				}
-- 
2.31.1
Pushed, thanks!