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

git-svn-id: file:///srv/svn/repo/suika/trunk@683 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-11-09 21:12:46 +00:00
parent 54c906a82c
commit c4562a004e

View File

@ -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