~emersion/soju-dev

Handle casemapping on BouncerServ v1 APPLIED

Hubert Hirtz: 1
 Handle casemapping on BouncerServ

 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/22419/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Handle casemapping on BouncerServ Export this patch

---
 downstream.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/downstream.go b/downstream.go
index 4707591..d524e7b 100644
--- a/downstream.go
+++ b/downstream.go
@@ -1670,7 +1670,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
		tags := copyClientTags(msg.Tags)

		for _, name := range strings.Split(targetsStr, ",") {
			if name == serviceNick {
			if casemapASCII(name) == serviceNickCM {
				if dc.caps["echo-message"] {
					echoTags := tags.Copy()
					echoTags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout))
-- 
2.31.1
Pushed, thanks!