From 644949e398fbeae7d921c1eaa0c7663d7e799fc7 Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Sat, 1 Apr 2000 10:58:16 +0000 Subject: [PATCH] Author: Isomer Log message: Yay! The previous fix worked, so here it is for opers. I was very tempted to leave it out and let idle opers ping out, but I got talked into fixing it for them too. Oh well, now opers can idle too in peace. This should finally fix those damn annoying ping bugs! git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@127 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 ++++- include/ircd_defs.h | 7 +++++++ ircd/parse.c | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f603b52..e1b7d1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2000-03-30 Perry Lorier + * ircd/parse.c: oops, missed opers. + 2000-03-30 Perry Lorier * ircd/parse.c: fixed mystifying ping bug thats been plaguing us for so long. Remember: m_ping MUST be in the parse array. :) @@ -281,7 +284,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.56 2000-04-01 08:54:11 isomer Exp $ +# $Id: ChangeLog,v 1.57 2000-04-01 10:58:16 isomer Exp $ # # Insert new changes at beginning of the change list. # diff --git a/include/ircd_defs.h b/include/ircd_defs.h index 07e05e5..6ec4f82 100644 --- a/include/ircd_defs.h +++ b/include/ircd_defs.h @@ -31,8 +31,15 @@ /* * NICKLEN is the maximum length allowed for a nickname + * + * Because certain networks are very helpful in finding bugs, the below + * is a default that can easily be overridden in CFLAGS. Just add + * -DNICKLEN=15 to CFLAGS and save your config in .., and you can forget about + * it. Thanks for helping debug guys. */ +#ifndef NICKLEN #define NICKLEN 9 +#endif /* * USERLEN is the maximum length allowed of a user name including an optional * leading '~' if the user name has not been authenticated by an auth (RFC 931) diff --git a/ircd/parse.c b/ircd/parse.c index 18bbfb1..c5d562a 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -199,7 +199,7 @@ struct Message msgtab[] = { TOK_PONG, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0, /* UNREG, CLIENT, SERVER, OPER, SERVICE */ - { mr_pong, m_pong, ms_pong, m_ignore, m_ignore } + { mr_pong, m_pong, ms_pong, m_pong, m_ignore } }, { MSG_ERROR, -- 2.20.1