Make default virtual host work for .12, and make IPv4-only
[ircu2.10.12-pk.git] / ChangeLog
index f76382c76233ff0162579d83850af9df66945e7f..f2a2d42c1674dacb1f7d21c0cace8c9c92d4897f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,246 @@
+2004-09-13  Michael Poole <mdpoole@troilus.org>
+
+       * doc/example.conf: Remove sample VIRTUAL_HOST setting.
+
+       * doc/readme.features: Remove VIRTUAL_HOST documentation, and
+       update NODNS documentation to match current behavior.
+
+       * include/s_conf.h: Remove now-unused vhost_address field and
+       set_virtual_host() function.
+
+       * include/ircd_features.h, ircd/ircd_features.c, ircd/s_debug.c:
+       Remove VIRTUAL_HOST.
+
+       * ircd/ircd_auth.c, ircd/s_bsd.c: Use VirtualHost as local address
+       if we do not have a more specific alternate.
+
+       * ircd/ircd_parser.y: Check for sanity in General blocks (from old
+       conf_add_local()) and assign vhost directly to VirtualHost.
+
+       * ircd/ircd_res.c (irc_in_addr_valid): Fix thinko; obviously any
+       value will be either != 0 or != 0xffff.
+
+       * ircd/os_generic.c: Use AF_INET instead of AF_INET6 when the
+       local addresses are specified as IPv4 addresses.
+
+       * ircd/s_conf.c: Remove unused conf_add_local() and
+       set_virtual_host().
+
+2004-09-13  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/listener.c (add_listener): Consolidate duplicated code, and
+       make sure listener->server is set before calling inetport() on it.
+
+2004-09-12  Michael Poole <mdpoole@troilus.org>
+
+       * include/channel.c (mode_parse_upass, mode_parse_apass): Only let
+       services (not normal opers) force a change of +A or +u.
+
+2004-09-11  Michael Poole <mdpoole@troilus.org>
+
+       * include/s_stats.h: Add sd_name to struct StatDesc.  Stop
+       publishing the statsinfo and statsmap arrays; replace them with
+       stats_find().  Change argument list of StatFunc() to work with
+       names.
+
+       * ircd/m_stats.c: Use stats_find() instead of statsmap[].  Use the
+       full argument instead of just the first character in reports.
+
+       * ircd/s_stats.c: Adapt individual stats handler functions to new
+       argument list.  Add long names to statsinfo[].  Add new functions
+       stats_cmp(), stats_search(), stats_find().  Sort statsinfo[] in
+       stats_init().
+
+       * ircd/s_err.c: Change ENDOFSTATS to display a string rather than
+       a single character.
+
+       * ircd/s_user.c: Send an error to the user when a message loses
+       its target in transit.
+
+       * include/class.h include/gline.h include/ircd_features.h
+       include/listener.h include/motd.h include/msgq.h include/res.h
+       include/s_debug.h include/s_misc.h include/userload.h ircd/class.c
+       ircd/gline.c ircd/ircd_features.c ircd/ircd_res.c ircd/listener.c
+       ircd/motd.c ircd/msgq.c ircd/s_debug.c ircd/s_misc.c
+       ircd/userload.c: Adjust stats handlers to new argument list.
+
+2004-09-11  Michael Poole <mdpoole@troilus.org>
+
+       * include/numeric.h, ircd/s_err.c: Remove RPL_TRACEPING, and
+       replace with RPL_TRACEEND.
+
+       * ircd/s_trace.c: Move all the duplicated code in m*_trace() to
+       do_trace().  Implement RPL_TRACEEND, per RFE#830291.
+
+2003-06-20  Alexander Maassen <outsider@key2peace.org>
+
+       * ircd/m_topic.c : Don't allow banned users to set a topic in a
+       channel.
+
+2004-09-11  Kevin L Mitchell  <klmitch@mit.edu>
+
+       * config.h.in, tools/Makefile.crypt: Remove wrong pathname from
+       comment in header.
+
+       * ircd/m_clearmode.c, ircd/m_opmode.c: Fix wrong pathname in
+       header comment.
+
+       * ircd/m_away.c, ircd/m_kill.c, ircd/m_notice.c, ircd/m_ping.c,
+       ircd/m_pong.c, ircd/m_privmsg.c, ircd/m_quit.c, ircd/m_topic.c,
+       ircd/m_version.c: Remove "template" moniker from comments.
+
+       * ircd/test/ircd_chattr.0.dat (IsChannelPrefix): Drop + from
+       channel prefix list.
+
+2004-09-11  Michael Poole <mdpoole@troilus.org>
+
+       * doc/example.conf: Add examples for FEAT_HIS_* features.
+
+2003-06-08 Matthias Crauwels <ultimate_@wol.be>
+       [Feature renamed to FEAT_HIS_WHOIS_LOCALCHAN by Michael Poole.]
+
+       * include/ircd_features.h: new feature FEAT_HIS_LOCAL_CHAN_WHOIS
+
+       * ircd/ircd_features.c: new feature FEAT_HIS_LOCAL_CHAN_WHOIS
+
+       * ircd/m_whois.c: hide local channels in local WHOIS, this breaks HIS
+
+       * doc/readme.features: documented FEAT_HIS_LOCAL_CHAN_WHOIS
+
+       * doc/ircd.conf.sample: default value for FEAT_HIS_LOCAL_CHAN_WHOIS
+
+2004-09-11  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_relay.c (server_relay_channel_message,
+       server_relay_channel_notice): Do not allow other servers to send
+       or relay to local channels.
+
+       * ircd/m_wallchops (ms_wallchops): Likewise.
+
+       * ircd/m_wallvoices (ms_wallvoices): Likewise.
+
+2004-09-11  Kevin L Mitchell  <klmitch@mit.edu>
+
+       * ircd/gline.c (gline_add): fix GLINE logging (Bug #750927)
+
+       * 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,