]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-channel.c
PredefChannelsOnly: Fix message for non pre-defined channels
[ngircd-alex.git] / src / ngircd / irc-channel.c
index ed4839afdcef63782be0510b876915d3522c8e10..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;
                }