You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no global limit for how many targets a multi-target command can have. Each command currently implements this differently: some have no limit, some have hardcoded limits, and some do not even support more than one target when they should.
Desired behavior
The target limit needs to be universal among all multi-target commands and configurable by limit:target. It should be reflected in RPL_ISUPPORT as MAXTARGETS (Currently, this is hardcoded to one, for compatibility with the commands which do not properly support multiple targets). Excess targets should be ignored.
Implementation
I think this should be implemented in the parameter parser. As it presently exists, commands with a single channel target use the channel parameter type. We could add channels which will look up a comma-separated list of channels and push an array reference of channel objects to the parameter list. If a channel does not exist, send out ERR_NOSUCHCHANNEL and skip it. If the target limit as specified by limit:target is reached, ignore the remainder of the list. The opt flag should be manually handled to indicate that an empty arrayref is permitted.
The text was updated successfully, but these errors were encountered:
Problem
There is no global limit for how many targets a multi-target command can have. Each command currently implements this differently: some have no limit, some have hardcoded limits, and some do not even support more than one target when they should.
Desired behavior
The target limit needs to be universal among all multi-target commands and configurable by
limit:target
. It should be reflected inRPL_ISUPPORT
asMAXTARGETS
(Currently, this is hardcoded to one, for compatibility with the commands which do not properly support multiple targets). Excess targets should be ignored.Implementation
I think this should be implemented in the parameter parser. As it presently exists, commands with a single channel target use the
channel
parameter type. We could addchannels
which will look up a comma-separated list of channels and push an array reference of channel objects to the parameter list. If a channel does not exist, send outERR_NOSUCHCHANNEL
and skip it. If the target limit as specified bylimit:target
is reached, ignore the remainder of the list. Theopt
flag should be manually handled to indicate that an empty arrayref is permitted.The text was updated successfully, but these errors were encountered: