X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-channel.c;h=ed4839afdcef63782be0510b876915d3522c8e10;hp=f9d2dc125d3708b11ad629ed9551b7f08f4b2598;hb=32f63abb59b5c9f47b4d517e0bbf9cc73fd044dc;hpb=23572af942399288bcf4e67245563b05ff4fc0f7 diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index f9d2dc12..ed4839af 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -679,9 +679,10 @@ IRC_LIST( CLIENT *Client, REQUEST *Req ) if (!strchr(Channel_Modes(chan), 's') || Channel_IsMemberOf(chan, from) || (!Conf_MorePrivacy && Client_OperByMe(Client))) { - if (IRC_CheckListTooBig(from, count, - MAX_RPL_LIST, - "LIST")) + if ((Conf_MaxListSize > 0) + && IRC_CheckListTooBig(from, count, + Conf_MaxListSize, + "LIST")) break; if (!IRC_WriteStrClient(from, RPL_LIST_MSG, Client_ID(from),