Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2005-10-06 23:58:19 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/m_join.c
Log message:
Handle join requests for too-long channel names.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.7 ircu2.10/ChangeLog:1.710.2.8
--- ircu2.10/ChangeLog:1.710.2.7 Wed Oct 5 21:00:25 2005
+++ ircu2.10/ChangeLog Thu Oct 6 16:58:09 2005
@@ -1,3 +1,8 @@
+2005-10-06 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/m_join.c (m_join): Report too-long channel names as
+ non-existent.
+
2005-10-05 Michael Poole <[EMAIL PROTECTED]>
* ircd/m_names.c (m_names): Fix format string when forwarding
Index: ircu2.10/ircd/m_join.c
diff -u ircu2.10/ircd/m_join.c:1.34 ircu2.10/ircd/m_join.c:1.34.2.1
--- ircu2.10/ircd/m_join.c:1.34 Fri Sep 16 07:12:05 2005
+++ ircu2.10/ircd/m_join.c Thu Oct 6 16:58:09 2005
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_join.c,v 1.34 2005/09/16 14:12:05 klmitch Exp $
+ * $Id: m_join.c,v 1.34.2.1 2005/10/06 23:58:09 entrope Exp $
*/
#include "config.h"
@@ -41,6 +41,7 @@
#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>
@@ -156,7 +157,8 @@
}
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;
}
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches