MGranatels / IRC

4 stars 1 forks source link

Implementation of List #54

Open MGranatels opened 1 year ago

MGranatels commented 1 year ago

LIST Syntax:

LIST [] Lists all channels on the server. If the comma-separated list is given, it will return the channel topics. If is given, the command will be forwarded to for evaluation. Defined in RFC 1459.

Numeric responses: RPL_LISTSTART (321): This numeric response is typically sent before sending the actual list of channels. It indicates the start of the channel list.

RPL_LIST (322): This numeric response is used to send information about a specific channel. It includes the channel name, the number of visible users, and a topic, if available.

RPL_LISTEND (323): This numeric response marks the end of the channel list. It indicates that the server has finished sending the list of channels.

ERR_TOOMANYMATCHES (416): If the client's request to list channels matches too many channels, the server might send this error response. It informs the client that the result set is too large to handle in a single response.

ERR_NOSUCHSERVER (402): If the client specifies a server that does not exist in their LIST request, the server might respond with this error.

ERR_NOSUCHCHANNEL (403): If the client specifies a channel that does not exist in their LIST request, the server might respond with this error.