Fix bug #916138 so -l doesn't gobble an argument.
[ircu2.10.12-pk.git] / ChangeLog
index b9616279541f50174e4b080ce742275de956eb3e..be3867cd546c395410b7fb98b14300a9b7949700 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,221 @@
+2004-09-11  Kevin L Mitchell  <klmitch@mit.edu>
+
+       * ircd/channel.c: removing limits shouldn't gobble an argument;
+       this was a subtle interaction issue with modebuf...fixed by adding
+       MODE_LIMIT to modebuf_flush_int() and short-circuiting
+       modebuf_mode_uint() to add MODE_LIMIT to mbuf->mb_rem in the
+       removal case.  Note that this is not proof against the sequence,
+       "modebuf_mode_uint(mbuf, MODE_ADD | MODE_LIMIT, 10);
+       modebuf_mode_uint(mbuf, MODE_DEL | MODE_LIMIT, 10);"
+       (Bug #916138)
+
+2004-09-11  Michael Poole <mdpoole@troilus.org>
+
+       * include/supported.h: Kev pointed out I misinterpreted the
+       meaning of CHANMODES; fix this.  Also define CHANNELLEN and
+       STATUSMSG from the ISUPPORT draft.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * include/supported.h (FEATURESVALUES2): Include A,u, in CHANMODES
+       when oplevels are enabled.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/channel.c (send_channel_modes): Only send oplevels for
+       channels that actually use them -- for -A channels, send chanops
+       as :o even if OPLEVELS is enabled.
+
+       * ircd/ircd.c: Fix -k (chkconf mode) and show in usage help.
+
+       * ircd/numnicks.c (base64toip): Fill in the right number of 0
+       words when we see _ in a base64-encoded IPv6 address.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd.c: Add -k as a chkconf-like option to exit after
+       reading the configuration file.
+
+       * ircd/chkconf.c: Remove as unused.
+
+       * ircd/Makefile.in: Remove last mentions of chkconf from Makefile.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * doc/example.conf: Remove examples for unused features (TIMESEC,
+       CRYPT_OPER_PASSWORD) and add for new feature (ANNOUNCE_INVITES).
+
+       * doc/readme.features: Remove documentation for unused features
+       (TIMESEC, CRYPT_OPER_PASSWORD, oper/locop privileges,
+       HIS_DESYNCS), update defaults for SOCKSENDBUF and SOCKRECVBUF, and
+       add documentation for ANNOUNCE_INVITES.
+
+       * include/ircd_features.h: Remove unused features (TIMESEC,
+       CRYPT_OPER_PASSWORD, LIST_CHAN, HIS_DESYNCS).
+
+       * include/ircd_features.c: Likewise.
+
+       * ircd/ircd_res.c: Actually use FEAT_IRCD_RES_RETRIES and
+       FEAT_IRCD_RES_TIMEOUT where appropriate.
+
+       * ircd/s_debug.c: Do not display setting of unused (and now
+       non-existent) FEAT_CRYPT_OPER_PASSWORD.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/os_generic.c (sockaddr_from_irc): Fix IPv4 implementation
+       to use the correct address family and IP offset.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * include/s_conf.h (struct ConfItem): Add origin and origin_name
+       fields.
+
+       * ircd/ircd_parser.y: Add new global variable "origin."  Add a new
+       "connectionvhost" production that accepts vhost = "IP" inside a
+       Connect block and assigns the IP to origin_name.
+
+       * ircd/s_bsd (connect_inet): If aconf has a valid origin, use it
+       as the local address.  Otherwise, fall back to the old logic (if
+       VIRTUAL_HOST="TRUE", use the virtual host setting).
+
+       * ircd/s_conf.c (lookup_confhost): If the ConfItem has an
+       origin_name, try to parse it as an IP address.
+
+2004-04-17  Isomer <isomer@undernet.org>
+       * ircd/parse.c: Don't rate limit /gline messages
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_parser.y: Replace references to yylval.whatever with
+       references to the appropriate term.  This fixes bugs like
+       "1 hour 30 minutes" being misrecognized as 30 seconds.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_features.c (features): Change default values for
+       SOCKSENDBUF and SOCKRECVBUF to SERVER_TCP_WINDOW, so that users
+       need not specify them in ircd.conf.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_parser.y (serverblock): Server blocks should default
+       to CONF_LEAF status.
+
+       * doc/example.conf: Update example to reflect this.
+
+2004-09-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/parse.c (msg_tree_parse): Reject commands that contain
+       non-alphabetic characters.
+
+2004-09-09  Michael Poole <mdpoole@troilus.org>
+
+       * config.h.in: Remove duplicated and unused macro definitions.
+
+2004-08-24  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/client.h: Properly parenthesize "flag" argument to
+       FLAGSET_INDEX() and FLAGSET_MASK() macros.
+
+2004-08-22  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/channel.c (send_channel_modes): If oplevels are disabled,
+       send 'o' for chanops instead of the member's oplevel.
+
+2004-08-22  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/s_conf.c: find_conf_byip() should use irc_in_addr_cmp()
+       instead of memcmp().  (Fixes IPv4 servers linking to an IPv6
+       server.)
+
+2004-08-22  Alex Badea  <decampos@users.sourceforge.net>
+
+       * include/ircd_defs.h: increased SOCKIPLEN to fit ipv6 addresses
+
+2004-08-19  Michael Poole <mdpoole@troilus.org>
+
+       * include/res.h: Remove unused function gethost_byname_type().
+
+       * ircd/ircd_res.c: Likewise, and clean up some small functions
+       only used once (remove_dlink(), timeout_resolver()).  Use rand()
+       for random request IDs instead of the deprecated *rand48().  Make
+       resolver timeout event fire only when needed instead of once a
+       second.
+
+2004-08-17  Michael Poole <mdpoole@troilus.org>
+
+       IPv6 support, with lots of code and design borrowed from a patch
+       by Alex Badea.
+
+       * config.h.in: Add place to #define IPV6 support.
+
+       * configure.in: Check for struct sockaddr_in6, and use that as
+       the default choice for IPv6 support.
+
+       * configure: Regenerate.
+
+       * include/IPcheck.h, include/client.h, include/gline.h,
+       include/ircd_string.h, include/listener.h, include/match.h,
+       include/res.h, include/s_bsd.h: Convert from struct in_addr (from
+       <netinet/in.h>) to struct irc_in_addr (from "res.h").
+
+       * include/ircd_osdep.h, include/s_conf.h, include/uping.h: Convert
+       from struct sockaddr_in (from <netinet/in.h>) to struct
+       irc_sockaddr (from "res.h").  Add new functions os_socket(),
+       os_accept(), os_sendto_nonb() to help abstract away actual
+       sockaddr types.
+
+       * include/ircd_chattr.h, ircd/table_gen.c: Define new bit to mark
+       characters valid in IPv6 addresses.
+
+       * include/numnicks.h, ircd/numnicks.c: New functions iptobase64()
+       and base64toip() to convert from base64 to struct irc_in_addr.
+
+       * ircd/IPcheck.c, ircd/channel.c, ircd/m_nick.c, ircd/m_oper.c,
+       ircd/m_userip.c, ircd/m_who.c, ircd/m_whois.c, ircd/s_misc.c,
+       ircd/s_serv.c, ircd/s_user.c, ircd/whocmds.c: Use struct
+       irc_in_addr instead of unsigned int or struct in_addr.
+
+       * ircd/gline.c: Use new more-generic ipmask functions.
+
+       * ircd/ircd.c: Use struct irc_sockaddr instead of separate port
+       fields.
+
+       * ircd/ircd_reslib.c: Use struct irc_sockaddr and ircd_aton()
+       instead of irc_ssaddr and irc_getaddrinfo().
+
+       * ircd/ircd_string.c: Implement new functions: IPv6-capable
+       ircd_ntoa_r(), ircd_aton_ip4(), ircd_aton().
+
+       * ircd/match.c: Delete IPv4-only matchcompIP().  Replace with
+       IPv6-capable ipmask_parse() and ipmask_check().
+
+       * ircd/numnicks.c: Implement new functions: iptobase64() and
+       base64toip().
+
+       * ircd/os_generic: Convert external parameters to be struct
+       irc_addrinfo.  When using IPv6 support, sockaddr_in6 is native.
+       Implement new functions os_sendto_nonb(), os_socket() and
+       os_accept().
+
+       * ircd/ircd_auth.c, ircd/ircd_parser.y, ircd/ircd_res.c,
+       ircd/listener.c, ircd/m_connect.c, ircd/s_auth.c, ircd/s_bsd.c,
+       ircd/s_conf.c, ircd/s_stats.c, ircd/uping.c: Use struct
+       irc_sockaddr instead of separate in_addr and port fields and new
+       OS support functions.
+
+       * include/ircd_addrinfo.h, ircd/ircd_getaddrinfo.c,
+       ircd/ircd_getnameinfo.c: Remove, since these functions are no
+       longer used.
+
+       * ircd/os_bsd.c, ircd/os_linux.c, ircd/os_openbsd.c,
+       ircd/os_solaris.c, ircd/res_adns.c, ircd/res_libresolv.c: Remove,
+       since these are unused and not compatible with IPv6 support.
+
+       * ircd/Makefile.in: Remove references to ircd_getXxxxinfo.c.
+       Regenerate dependencies.
+
 2004-08-17  Michael Poole <mdpoole@troilus.org>
 
        * ircd/ircd_lexer.l: Change tokenizer to reduce number of lexer