git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1518
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2005-10-06 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_join.c (m_join): Report too-long channel names as
+ non-existent.
+
2005-10-05 Michael Poole <mdpoole@troilus.org>
* ircd/m_names.c (m_names): Fix format string when forwarding
#include "s_debug.h"
#include "s_user.h"
#include "send.h"
+#include "sys.h"
/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <stdlib.h>
}
if (!(chptr = FindChannel(name))) {
- if ((name[0] == '&') && !feature_bool(FEAT_LOCAL_CHANNELS)) {
+ if (((name[0] == '&') && !feature_bool(FEAT_LOCAL_CHANNELS))
+ || strlen(name) >= IRCD_MIN(CHANNELLEN, feature_int(FEAT_CHANNELLEN))) {
send_reply(sptr, ERR_NOSUCHCHANNEL, name);
continue;
}