Skip to content

Instantly share code, notes, and snippets.

@jesopo
Last active January 23, 2020 17:26
Show Gist options
  • Save jesopo/65ca4c70adc1e94bda348a46369cdeba to your computer and use it in GitHub Desktop.
Save jesopo/65ca4c70adc1e94bda348a46369cdeba to your computer and use it in GitHub Desktop.
ISUPPORT `LISTMODES` token proposal

ISUPPORT LISTMODES token

rationale

servers currently do not convey which RPL_*LIST and RPL_ENDOF*LIST numerics are used for custom list modes (e.g. +eIq.)

however, well established "custom" list modes can be roughly figured out doing the following:

+q

728/729 have a parameter that expresses the list mode that represents quiets:

> MODE ##test2 +q
< :adams.freenode.net 728 jes|test ##test2 q asd!*@* jes|[email protected] 1579799870
< :adams.freenode.net 729 jes|test ##test2 q :End of Channel Quiet List

+e

the EXCEPTS ISUPPORT token expresses the mode used for 348 and 349.

+I

the INVEX ISUPPORT token expresses the mode used for 346 and 347

other list modes

less well established list modes, while providing numerics for listing their entries, do not have methods like this to tie the two together.

solution

LISTMODES=<mode>:<num-list>:<num-end>,<mode2>:<num-list2>:<num-end2>

e.g.:

LISTMODES=q:728:729,e:348:349,I:346:347,X:954:953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment