]> jfr.im git - solanum.git/blobdiff - modules/core/m_join.c
supported: add chantypes_update()
[solanum.git] / modules / core / m_join.c
index f74d7dd5b69b92392ea4d7d66884258cd6aaa9d8..2eb9d7b7f9f63edf06dd39bb20eca3affbde5bc2 100644 (file)
@@ -183,9 +183,8 @@ m_join(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
                        continue;
                }
 
-               /* check it begins with # or &, and local chans are disabled */
-               else if(!IsChannelName(name) ||
-                       ( ConfigChannel.disable_local_channels && name[0] == '&'))
+               /* check it begins with a valid channel prefix per policy. */
+               else if (!IsChannelName(name))
                {
                        sendto_one_numeric(source_p, ERR_NOSUCHCHANNEL,
                                           form_str(ERR_NOSUCHCHANNEL), name);