]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-channel.c
Exit message: use singular & plural :-)
[ngircd-alex.git] / src / ngircd / irc-channel.c
index f9d2dc125d3708b11ad629ed9551b7f08f4b2598..41947a8ac2eb930baf6f4f3642713e33d992dfe0 100644 (file)
@@ -365,7 +365,7 @@ IRC_JOIN( CLIENT *Client, REQUEST *Req )
                chan = Channel_Search(channame);
                if (!chan && Conf_PredefChannelsOnly) {
                         /* channel must be created, but forbidden by config */
-                       IRC_WriteStrClient(Client, ERR_BANNEDFROMCHAN_MSG,
+                       IRC_WriteStrClient(Client, ERR_NOSUCHCHANNEL_MSG,
                                           Client_ID(Client), channame);
                        goto join_next;
                }
@@ -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),