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
This commit is contained in:
Simon Ser 2021-11-09 22:12:46 +01:00
parent 0b6ff2e61a
commit f920f27e02

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