Skip to content

Commit

Permalink
Implement numeric RPL_LISTSTART(321)
Browse files Browse the repository at this point in the history
lightIRC and other clients expecting RPL_LISTSTART should now behave correctly.

Closes #207.

(cherry picked from commit 0680ce5)
  • Loading branch information
LucentW authored and alexbarton committed May 16, 2015
1 parent a43d79a commit 0f490b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ngircd/irc-channel.c
Expand Up @@ -597,6 +597,10 @@ IRC_LIST( CLIENT *Client, REQUEST *Req )
}
}

/* Send list head */
if (!IRC_WriteStrClient(from, RPL_LISTSTART_MSG, Client_ID(from)))
return DISCONNECTED;

while (pattern) {
/* Loop through all the channels */
if (Req->argc > 0)
Expand Down
1 change: 1 addition & 0 deletions src/ngircd/messages.h
Expand Up @@ -67,6 +67,7 @@
#define RPL_WHOISIDLE_MSG "317 %s %s %lu %lu :seconds idle, signon time"
#define RPL_ENDOFWHOIS_MSG "318 %s %s :End of WHOIS list"
#define RPL_WHOISCHANNELS_MSG "319 %s %s :"
#define RPL_LISTSTART_MSG "321 %s Channel :Users Name"
#define RPL_LIST_MSG "322 %s %s %ld :%s"
#define RPL_LISTEND_MSG "323 %s :End of LIST"
#define RPL_CHANNELMODEIS_MSG "324 %s %s +%s"
Expand Down

0 comments on commit 0f490b5

Please sign in to comment.