From: Perry Lorier Date: Thu, 27 Apr 2000 23:05:42 +0000 (+0000) Subject: Author: Perry Lorier X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=9e7f595c6b5101e0364edec2cd354d12ec7298a8 Author: Perry Lorier Log message: Lotsa minor changes, documented some 'undocumented' features, add more stuff to RPL_ISUPPORT, add -DNOOPER, Change some of the defaults in make config. Make some of the error messages a bit more understandable. Testing Required: * Check that RELEASE.NOTES is correct. * Run through make config with no config file and see if everything looks ok. * Make sure it compiles :) * Make sure RPL_ISUPPORT is ok. * Make sure that servers that aren't defined with HUB or L:'d or don't have a H: give the right error messages. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@209 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index a9d4f9c..916813c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-04-28 Perry Lorier + * RELEASE.NOTES: Describe a few more undocumented features. + * config/config-sh.in: change the default paths for logging + and the recommended number of channels. + * include/supported.h: Rearrange slightly, added CHANTYPE's + 2000-04-27 Kevin L. Mitchell * ircd/s_misc.c: *sigh* 2.10.10 doesn't support squitting by @@ -31,6 +37,7 @@ conversions; use ircd_snprintf in a couple of cases to negate the possibility of buffer overflow +>>>>>>> 1.106 2000-04-26 Kevin L. Mitchell * ircd/channel.c: convert as much as possible to new send @@ -827,7 +834,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.106 2000-04-27 20:24:11 kev Exp $ +# $Id: ChangeLog,v 1.107 2000-04-27 23:05:41 isomer Exp $ # # Insert new changes at beginning of the change list. # diff --git a/RELEASE.NOTES b/RELEASE.NOTES index 9453be3..47c4f2b 100644 --- a/RELEASE.NOTES +++ b/RELEASE.NOTES @@ -68,13 +68,27 @@ run make config. -DEXTENDED_NUMERICS This option configures the server to send extended numerics as well as parse them. This option should only be used on networks that run ircu2.10.07 and above only. --DFERGUSON_FLUSHER If you have a server with a lot of resources -available this option will cause the server to attempt to flush +-DFERGUSON_FLUSHER This causes your server to attempt to flush it's internal buffers before dropping clients during a netbreak. -Don't define this if you don't know, if you're not careful this -can end up rebooting FreeBSD boxes. +This option *may* panic your server - especially if your running +on a unconfigured FreeBSD box. If you can define this we recommend +you do - but beware of spontanious reboots on netbreak. -DWALLOPS_OPER_ONLY Setting this option removes the ability for clients that are not opered to see wallops messages. +-DNOOPER Disallow the /oper command. + +There are a few to be used for debugging or other networks. These +should *NOT* be defined on the undernet production network. + +-DNICKLEN=15 This allows you do override the default nick length +to 15 characters. If this has different values on different servers +your network *WILL* fall apart. Only use this option if you know +what your doing. If you don't, ask in #coder-com on undernet. +-DNO_THROTTLE This disables the throttling code. This is used for +debugging *only*. It lets you connect up to 255 clients from one +host with no time conciderations. If this is enabled on a +production server I will personally drive your server into the +ground. You have been warned. Operating System and Kernel Requirements: If you plan allowing more than 1000 clients on your server, you diff --git a/config/config-sh.in b/config/config-sh.in index 7314d2a..6cd8cf1 100644 --- a/config/config-sh.in +++ b/config/config-sh.in @@ -241,11 +241,11 @@ comment 'Bad Channel G-Lines allow operators to add channel masks to a list whic fi bool 'Do you want to log connecting users to a separate file' CONFIG_LOG_USERS if [ "$CONFIG_LOG_USERS" = "y" ]; then - string ' Give the path and(or) filename of this log file' FNAME_USERLOG $DPATH/users + string ' Give the path and(or) filename of this log file' FNAME_USERLOG users.log fi bool 'Do you want to log Opers to a separate file' CONFIG_LOG_OPERS if [ "$CONFIG_LOG_OPERS" = "y" ]; then - string ' Give the path and(or) filename of this log file' FNAME_OPERLOG $DPATH/opers + string ' Give the path and(or) filename of this log file' FNAME_OPERLOG opers.log fi if [ "$ac_cv_header_syslog_h" = "yes" ]; then bool 'Do you want to use syslog' USE_SYSLOG @@ -374,7 +374,7 @@ comment 'Mandatory defines (you should leave these untouched)' define_bool LOCAL_KILL_ONLY $LOCAL_KILL_ONLY fi int 'KILL nick chase time limit (30)' KILLCHASETIMELIMIT 30 - int 'Max number of channels per user (recommended: 5)' MAXCHANNELSPERUSER 10 + int 'Max number of channels per user (recommended: 10)' MAXCHANNELSPERUSER 10 int 'Max number of silence masks (15!)' MAXSILES 15 int 'Expected average banmask length (40!)' AVBANLEN 40 eval define_macro MAXSILELENGTH \'\($AVBANLEN * MAXSILES\)\' diff --git a/include/supported.h b/include/supported.h index 64b5069..77b369c 100644 --- a/include/supported.h +++ b/include/supported.h @@ -32,22 +32,24 @@ /* * 'Features' supported by this ircd */ -#define FEATURES "SILENCE=15"\ +#define FEATURES \ " WHOX"\ " WALLCHOPS"\ " USERIP"\ " CPRIVMSG"\ " CNOTICE"\ + " MAP" \ + " SILENCE=%i " \ " MODES=%i" \ " MAXCHANNELS=%i" \ " MAXBANS=%i" \ " NICKLEN=%i" \ " TOPICLEN=%i" \ " KICKLEN=%i" \ - " MAP" + " CHANTYPES=%s" -#define FEATURESVALUES MAXMODEPARAMS,MAXCHANNELSPERUSER,MAXBANS, \ - NICKLEN,TOPICLEN,TOPICLEN +#define FEATURESVALUES 15,MAXMODEPARAMS,MAXCHANNELSPERUSER,MAXBANS, \ + NICKLEN,TOPICLEN,TOPICLEN,"+#&" #endif /* INCLUDED_supported_h */ diff --git a/ircd/m_server.c b/ircd/m_server.c index 5578d0f..3759a8e 100644 --- a/ircd/m_server.c +++ b/ircd/m_server.c @@ -400,7 +400,7 @@ int mr_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) * If my ircd.conf sucks, I can try to connect to myself: */ if (acptr == &me) - return exit_client_msg(cptr, cptr, &me, "nick collision with me (%s), check server number?", host); + return exit_client_msg(cptr, cptr, &me, "nick collision with me (%s), check server number in M:?", host); /* * Detect wrong numeric. */ @@ -1066,7 +1066,7 @@ int ms_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) */ if (acptr == &me) return exit_client_msg(cptr, cptr, &me, - "nick collision with me (%s)", host); + "nick collision with me, check server number in M:? (%s)", host); /* * Detect wrong numeric. */ @@ -1731,7 +1731,7 @@ int m_server(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) */ if (acptr == &me) return exit_client_msg(cptr, cptr, &me, - "nick collision with me (%s)", host); + "nick collision with me, check server number in M:? (%s)", host); /* * Detect wrong numeric. */ diff --git a/ircd/parse.c b/ircd/parse.c index 45c11ed..7d78eca 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -354,7 +354,11 @@ struct Message msgtab[] = { TOK_OPER, 0, MAXPARA, MFLG_SLOW, 0, /* UNREG, CLIENT, SERVER, OPER, SERVICE */ +#ifndef NOOPER { m_unregistered, m_oper, ms_oper, mo_oper, m_ignore } +#else + { m_unregistered, m_oper, m_ignore, m_ignore, m_ignore } +#endif }, { MSG_CONNECT,