~emersion/soju-dev

Correctly handle empty IRC messages v1 SUPERSEDED

Hubert Hirtz: 1
 Correctly handle empty IRC messages

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

[PATCH] Correctly handle empty IRC messages Export this patch

A new version of go-irc includes a fix that makes irc.Conn.ReadMessage
ignore empty messages. This fixes soju closing connections on an empty
message.
---
 go.mod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go.mod b/go.mod
index 462d99c..e3b1457 100644
--- a/go.mod
+++ b/go.mod
@@ -11,6 +11,6 @@ require (
	github.com/pires/go-proxyproto v0.2.0
	golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897
	golang.org/x/sys v0.0.0-20201024232916-9f70ab9862d5 // indirect
	gopkg.in/irc.v3 v3.1.3
	gopkg.in/irc.v3 v3.1.4
	nhooyr.io/websocket v1.8.6
)
-- 
2.26.2
Ah, thanks. This patch won't quite work as-is because  we need to
update go.sum as well.

Can we update all dependencies while at it?

   go get -u ./...
   go mod tidy