From f920f27e0280801fdb52d397e1389b40dfa5b43c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 Nov 2021 22:12:46 +0100 Subject: [PATCH] Add ELIST support in single-upstream mode We just forward the command as-is, so we can pass down the ISUPPORT token as well. Closes: https://todo.sr.ht/~emersion/soju/148 --- downstream.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/downstream.go b/downstream.go index 95ee7d0..23a99fa 100644 --- a/downstream.go +++ b/downstream.go @@ -219,6 +219,7 @@ var passthroughIsupport = map[string]bool{ "CHANNELLEN": true, "CHANTYPES": true, "CLIENTTAGDENY": true, + "ELIST": true, "EXCEPTS": true, "EXTBAN": true, "HOSTLEN": true, @@ -1835,8 +1836,6 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error { sendTopic(dc, ch) } case "LIST": - // TODO: support ELIST when supported by all upstreams - network := dc.network if network == nil && len(msg.Params) > 0 { var err error