+2007-11-28 Michael Poole <mdpoole@troilus.org>
+
+ * include/patchlevel.h (PATCHLEVEL): Bump for pre12 development.
+
+2007-11-28 Michael Poole <mdpoole@troilus.org>
+
+ * include/patchlevel.h (PATCHLEVEL): Bump for u2.10.12.11 release.
+
+2007-11-28 Michael Poole <mdpoole@troilus.org>
+
+ * tests/test-driver.pl (drv_default): Fix expect for numeric
+ responses that have non-trivial parameters.
+ (check_expect): Simplify (and fix) sender name check.
+
+ * tests/bug-1640796.cmd: Update expect NNN for new POE behavior
+ and part to not try to part the channel named "leaving".
+
+ * tests/bug-1674539.cmd: Update expect NNN for new POE behavior.
+
+ * tests/bug-1840011.cmd: New test script.
+
+2007-11-28 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/channel.c (mode_ban_invalidate): Clarify Doxygen comments.
+ (apply_ban): Only block narrower bans if the wider ban is active.
+
+2007-11-24 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_names.c (do_names): Don't try to re-initialize the start
+ of buf[] for each line. It's done the first time around and that
+ can be reused safely.
+
+2007-11-17 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_stats.c (m_stats): Properly assign param before it is
+ used in the hunt_server_cmd() call.
+
+2007-11-17 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_auth.c (iauth_disconnect): Avoid destroying invalid
+ sockets.
+ (iauth_stderr_callback): Disconnect iauth child if stderr has
+ EOF (in case stdin notification is delayed somehow).
+
+2007-11-04 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/umkpasswd.c (sum): Typecast buffer to avoid a warning about
+ the parameter type being passed to strlen().
+
+2007-11-04 Michael Poole <mdpoole@troilus.org>
+
+ * doc/example.conf: Document /LIST M as controlled by list_chan.
+
+ * include/channel.h (LISTARG_SHOWMODES): Define.
+
+ * ircd/hash.c (list_next_channels): Handle it.
+
+ * ircd/m_list.c (show_usage): Document 'M' flag.
+ (param_parse): Recognize 'M' as LISTARGS_SHOWMODES.
+
+2007-11-04 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_list.c (param_parse): Reverse comparison direction when
+ converting from minutes to time_t, and which bound is set (so that
+ T<time_t works correctly). Also switch is_time cases so that 'T'
+ and 'C' work as documented. Remove a "break" after a "return".
+
+ (m_list): Remove a "break" after a "return".
+
+2007-10-29 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_lexer.l (YY_INPUT): Redefine to use fbgets().
+ (init_lexer): Return a value to indicate failure. Use fbopen().
+ (deinit_lexer): New function.
+
+ * ircd/s_conf.c (read_configuration_file): Update extern
+ declarations. Bail if init_lexer() fails. Call deinit_lexer()
+ rather than directly munging yyin.
+
+2007-10-29 Michael Poole <mdpoole@troilus.org>
+
+ * include/gline.h: Delete declaration of gline_propagate().
+
+ * include/whocmds.h: Delete declaration of count_users().
+
+ * ircd/whocmds.c (count_users): Move to gline.c as a static.
+
+ * ircd/gline.c (whocmds.h): Remove #include.
+ (gliter): Document boolean trickiness. Add missing trickiness
+ when gl_flags has bits set besides GLINE_ACTIVE.
+ (make_gline): Get rid of now-unused "after" variable and the
+ comments related to overlapping G-lines.
+ (gline_propagate): Make static.
+ (count_users): Move from whocmds.c as a static function.
+ (count_realnames): New function.
+ (gline_add): Require a force to hit lots of users with a realname
+ G-line.
+
+2007-09-05 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_gline.c (ms_gline): Remove dead branch when 4 < parc < 5.
+ (mo_gline): Consistently use the last argument as the reason.
+
+2007-09-05 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/Makefile.in: Fix dependencies for version.h generation.
+
+2007-08-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/send.c (sendwallto_group_butone): Move a feature_bool()
+ call out of a loop. Convert HasFlag() uses to appropriate macros
+ from client.h.
+
+2007-08-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_string.c (ircd_aton_ip4): Allow a sequence of *.* at
+ the end of an IPv4 mask.
+ (ipmask_parse): Likewise for *:* at the end of IPv6 masks.
+
+ * ircd/test/ircd_in_addr_t.c (test_masks): Add tests for this.
+
+2007-08-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_user.c (register_user): Update inv_clients and opers
+ counts. Call client_set_privs() for local users.
+ (set_nick_name): Do not call client_set_privs() for remote users.
+ (set_user_mode): Move oper and invisible client checks inside the
+ IsRegistered() section.
+
+2007-08-14 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/channel.c (DONE_*): Split key changes into _ADD and _DEL.
+ (mode_parse_key): Check both, to properly handle -k+k changes.
+ (mode_parse_upass): Likewise, for -U+U.
+ (mode_parse_apass): Liekwise, for -A+A (in case that ever happens).
+ (mode_parse): Update which "done" flag is checked during a wipeout.
+
+2007-08-13 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_user.c (whipser): CNOTICEs should not trigger away
+ messages, only CPRIVMSGs.
+
+2007-08-13 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_who.c (m_who): Reorder responses and change the
+ ERR_QUERYTOOLONG parameter to be consistent with m_whois().
+
+2007-08-13 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_user.c (register_user): Initialize umodev[] in a
+ C89-compatible way. (gcc 4.1.2 warned about it.)
+
+2007-08-13 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_names.c (do_names): Add NAMES_DEL to comment. Avoid use
+ of strcat(). Get rid of ms_names(), which was basically a copy of
+ m_names(), and merge the "showingdelayed" changes into m_names().
+ Replace the recursion with iteration.
+
+ * ircd/parse.c (msgtab): Use m_names(), not ms_names().
+
+2007-08-08 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_auth.c (report_iauth_conf): Remove end-of-stats message;
+ m_stats() already does that.
+
+ (report_iauth_stats): Likewise.
+
+2007-08-08 Michael Poole <mdpoole@troilus.org>
+
+ * include/res.h (irc_in_addr_is_ipv4): Fix classification of
+ addresses like 0.0.0.0.
+
+2007-07-21 Perry Lorier <isomer@undernet.org>
+
+ * ircd/s_user.c: Move set_nick_name() to use set_user_mode(),
+ set_user_mode() now interprets +r usermodes properly (and ignores
+ them from non servers). This fixes a problem where remote users
+ weren't being counted properly anymore.
+
+2007-07-20 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/m_gline.c: create abs_expire() macro to convert an expire
+ timestamp from the network into an absolute time, if needed;
+ rename expire_off to expire globally, since it now represents an
+ absolute expiration time; use expire - CurrentTime in gline
+ forwarding statements; in ms_gline(), use abs_expire() to convert
+ network expiration timestamp into absolute timestamp; in
+ mo_gline(), add CurrentTime to oper-provided expiration offset to
+ convert to absolute timestamp
+
+ * ircd/gline.c: assume expire and lifetime arguments to
+ gline_add() and gline_modify() are already absolute timestamps;
+ send lifetime parameter as an absolute timestamp, but leave expire
+ timestamp as relative as first part of a 2-phase update
+
+2007-07-12 Perry Lorier <isomer@undernet.org>
+ Reconsider how we manage modes before registration, to avoid stats
+ getting out of sync.
+
+ * ircd/s_user.c (set_user_mode): Add new parameter to set_user_mode to
+ ignore some modes.
+ (register_user): Use set_user_mode to parse default usermode for
+ users.
+
+ * ircd/m_user.c: Add extra parameter to set_user_mode call
+
+ * ircd/s_auth.c: Add extra parameter to set_user_mode call
+
+ * ircd/m_mode.c: Add extra parameter to set_user_mode call
+
+ * ircd/s_misc.c: Verify stats are consistant.
+
+ * include/s_user.h: Change prototype, add flag definitions.
+
+ * ircd/m_lusers.c (m_users): Assert that we're generating sane stats,
+ include "unknowns" in the total user connections to avoid negative
+ wrap arounds.
+
+2007-07-12 Perry Lorier <isomer@undernet.org>
+
+ * ircd/m_user.c (m_luser): Fix broken RFC 2812 on connect user mode
+ setting
+
+2007-05-28 Michael Poole <mdpoole@troilus.org>
+
+ * include/numeric.h (ERR_INPUTTOOLONG): New numeric.
+
+ * ircd/s_bsd.c (read_packet): Use it.
+
+ * ircd/s_err.c (replyTable): Give it a format string.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_burst.c (ms_burst): Do not let bursting servers join a
+ user to a channel more than once.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_features.c (feature_set): Report new value of feature
+ for /set.
+ (feature_reset): Likewise, for /reset.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_burst.c (netride_modes): Return -1 if someone tries to
+ remove modes in the burst.
+ (ms_burst): Check for, and handle, that protocol violation.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_privs.c (mo_privs): Report "no such nickname" for unknown
+ nicks in the list. (Unfortunately, the nick is lost before ms_privs.)
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/listener.c (show_ports): Actually hide hidden ports from
+ clients that should not see them.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_err.c (ERR_DONTCHEAT): Add apparently missing %s.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_connect.c (mo_connect): Return an error to a locop who
+ tries to do a remote connect.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/parse.c (msgtab): Make SETTIME consistent with other
+ oper commands, in using m_not_oper for non-opered clients.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_parser.y (pseudoblock): Forbid pseudo commands that
+ are not all alphabetic characters.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * configure.in (maxcon): Check that maximum connections is
+ sufficiently large to avoid underflow in MAXCLIENTS.
+
+2007-05-20 Michael Poole <mdpoole@troilus.org>
+
+ * include/supported.h (FEATURES2): Remove extra space.
+
+ * ircd/m_admin.c (m_admin): Only check server mask against our
+ name, so that it cannot leak information about other linked
+ servers.
+
+ * ircd/m_version.c (m_version): Likewise.
+
+2007-04-15 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/m_gline.c: fix minor typo in code that forwards remote
+ local activations/deactivations: %c takes characters, not
+ pointers!
+ (mo_gline): fix similar typo in code forwarding remote local
+ G-lines by opers
+
+2007-04-10 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_parser.y (iauth): Avoid problems related to MyFree's
+ multiple evaluation of its argument.
+
+2007-04-10 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/m_gline.c (ms_gline): lastmod must be non-zero
+
+2007-04-04 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_conf.c (rehash): Restart resolver after reading the
+ config file; this un-breaks the resolver after /rehash if the
+ ircd.conf contains no "dns server = <ipstring>;" lines.
+
+2007-04-01 J. R. Lenz <ralf@starshadow.com>
+
+ * ircd/s_user.c (register_user): Check for host-hiding when fully
+ registering a user. [Comment added by Entrope.]
+
+2007-03-31 Michael Poole <mdpoole@troilus.org>
+
+ * doc/readme.iauth (IAuth M): Document new command.
+
+ * ircd/m_user.c (m_user): Recognize RFC 2812 mode request and a
+ saner usermode request.
+
+ * ircd/s_auth.c (iauth_cmd_usermode): New command.
+ (iauth_parse): Dispatch to it.
+
+ * ircd/s_user.c (set_user_mode): Only broadcast usermode changes
+ for registered clients.
+
+ * tools/iauth-test (127.0.1.3): Test the new M command.
+
+2007-03-31 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_mode.c (m_mode): Check and report target/source
+ violations before calling set_user_mode().
+ (ms_mode): Likewise.
+
+ * ircd/s_user.c (set_user_mode): Remove those checks from here.
+
+2007-03-31 Michael Poole <mdpoole@troilus.org>
+
+ * include/ircd_events.h (struct Generators): Convert elements to
+ be struct GenHeader*.
+ (timer_next): Update to match.
+
+ * ircd/ircd_events.c (timer_enqueue): Update to match.
+ (signal_callback): Likewise.
+ (timer_init): Remove a typecast with something slightly safer.
+ (timer_run): Update to deal with new type of Generator.g_timer.
+ (signal_add): Likewise.
+ (socket_add): Likewise.
+
+2007-03-28 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_asll.c (ms_asll): Count hits and report at the end, so
+ that a client is told whether any match (and has a hint that only
+ directly linked servers are checked).
+ (mo_asll): Likewise.
+
+2007-03-26 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_stats.c (m_stats): Move check for STAT_FLAG_LOCONLY (and
+ the assignment to "param") to the hunted server.
+
+2007-03-26 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_auth.c (iauth_parse): Check for missing arguments when
+ parsing the iauth message.
+
+ * tests/bug-1685648.cmd: New file to test this.
+
+ * tests/iauth-test: New file to exercise the code path.
+
+ * tests/ircd.conf: Use the iauth-test helper program.
+
+2007-03-26 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_silence.c (forward_silences): Do not try twice to process
+ silences that were both added and deleted.
+
+2007-03-26 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/ircd_parser.y (portblock): Restore old behavior for Port
+ blocks with no host listed.
+
+2007-03-26 Michael Poole <mdpoole@troilus.org>
+
+ * doc/readme.iauth (iauth I): Fix example and syntax.
+
+2007-03-18 Michael Poole <mdpoole@troilus.org>
+
+ * acinclude.m4 (unet_NONBLOCKING): Properly quote function name.
+ (unet_SIGNALS): Likewise.
+ (unet_CHECK_TYPE_SIZES): Likewise.
+ (AC_LIBRARY_NET): Likewise.
+
+2007-03-18 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/m_gline.c (mo_gline): add permissions checks I kept
+ forgetting to add--remote local modifications require
+ FEAT_CONFIG_OPERCMDS and PRIV_GLINE, local G-lines require
+ PRIV_LOCAL_GLINE, and global G-line changes (excluding local
+ activation/deactivation) require FEAT_CONFIG_OPERCMDS and
+ PRIV_GLINE
+
+2007-03-17 Michael Poole <mdpoole@troilus.org>
+
+ * doc/example.conf (CRule): Document the support for multiple
+ server masks in a single CRule block.
+ (Port): Document the optional additional field for vhost entries.
+ Document the support for multiple vhost entries in a single Port
+ block.
+
+ * ircd/ircd_parser.y (USE_IPV4): Shift up by 16 bytes.
+ (USE_IPV6): Likewise.
+ (portblock): Iterate over hosts rather than using the single host.
+ (portitem): Add portvhostnumber alternative production.
+ (portnumber): Check port number here. If valid, combine address
+ family and port number in "port" variable. If a port-less item
+ exists in "hosts", set its port number.
+ (portvhost): Prepend mask to "hosts" list.
+ (portvhostnumber): New production.
+ (cruleblock): Iterate over hosts rather than using the single
+ host.
+ (cruleserver): Prepend server mask to "hosts" list.
+