ircu2.10.12-pk.git
22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Tue, 8 Jan 2002 10:39:32 +0000 (10:39 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

* Fixed the build system, "MAKEFILES" is not a general purpose variable in a
makefile -- it implicitly includes the other makefiles.  And it appears to
have shown up some bug in Make too.  Funky!

* Added "Quit: " prefixes to quit messages.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@595 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Mon, 24 Dec 2001 10:12:01 +0000 (10:12 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

A) Minor cleanups to m_server.c to try and make the error more obvious.  Mostly
deadcode removal.

B) made limits show in I:'s

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@592 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: John Buttery <john@io.com> (By way of Kev <klmitch@mit.edu>)
Kevin L. Mitchell [Wed, 19 Dec 2001 19:54:28 +0000 (19:54 +0000)]
Author: John Buttery <john@io.com> (By way of Kev <klmitch@mit.edu>)
Log message:

Correct typo

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@591 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 1 Nov 2001 22:56:51 +0000 (22:56 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Keeping .12 branch in sync with fixes committed to u2.10.11.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@587 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Thu, 1 Nov 2001 19:31:32 +0000 (19:31 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Fixed bug where we send cptr instead of sptr when complaining about servers
with clock drift.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@585 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Tue, 30 Oct 2001 20:46:26 +0000 (20:46 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Fixed ping bug, moved ChangeLog

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@582 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <Isomer@coders.net>
Perry Lorier [Tue, 30 Oct 2001 19:58:36 +0000 (19:58 +0000)]
Author: Isomer <Isomer@coders.net>
Log message:

fixed hunt server

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@579 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Thu, 11 Oct 2001 10:21:49 +0000 (10:21 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Changed sendcmdto_flags_butone() to sendwallto_group_butone().

Comments on this patch please?

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@573 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Vampire- <unknown>
Perry Lorier [Mon, 24 Sep 2001 00:04:16 +0000 (00:04 +0000)]
Author: Vampire- <unknown>
Log message:

Second attempt at fixing unique_name_vector

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@564 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: mbuna <mbuna@undernet.org>
Perry Lorier [Sat, 22 Sep 2001 00:33:46 +0000 (00:33 +0000)]
Author: mbuna <mbuna@undernet.org>
Log message:

Darwin is the core of Mac OS X. It's a real BSD, and its very similar
to freeBSD on many points. Actually, ircu's config systems doesnt
recognize it. Users can force with the --host option, but the build
will fail due to minor compatibility problems on os_generic. It's
working well when linking with os_bsd.c.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@561 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Fri, 21 Sep 2001 11:42:34 +0000 (11:42 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Fixed acptr that was supposed to be "from" in s_user.c

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@560 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Thu, 20 Sep 2001 10:55:14 +0000 (10:55 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Various pull ups from 2.10.10.pl16
Rate limited snotices

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@557 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Mon, 17 Sep 2001 09:01:00 +0000 (09:01 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Most of the updates from 2.10.10.pl16 and a few odds and ends I'd forgotten
about.  Thanks to my flatmate who learnt to code while I was cooking :)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@556 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 31 Aug 2001 14:37:30 +0000 (14:37 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Channel limits are unsigned; display and process them that way.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@555 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 17 Aug 2001 19:10:00 +0000 (19:10 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

#include <stdlib.h> to define exit()

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@551 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 17 Aug 2001 16:59:18 +0000 (16:59 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Update README, RELEASE.NOTES, and Authors; fix mr_error() to ignore ERROR
from servers we're not connecting to, thus preventing users from using it
to annoy operators; fix mo_wallops() to insert "* " before wallops so that
they can be distinguished from wallusers; remove documentation line for
/stats v.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@550 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Tue, 31 Jul 2001 20:23:57 +0000 (20:23 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Finally tracked down why ERROR messages from servers we're connecting to
aren't being saved: there was no handler for ERRORs from unregistered
clients!  Curiously enough, handlers.h had a declaration for one.  Anyway,
I added one, with a test for IsUserPort() so that ordinary users can't
abuse us (I hope...), and it now works fine.  Also removed an unused
variable found while trying to track down a bug that causes some servers
and users to not be sent in the BURST--I haven't yet tracked that bug down,
unfortunately.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@546 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 28 Jul 2001 17:10:09 +0000 (17:10 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Another minor typo.  This time, everything's fixed and tested.  Sorry for
the patches@ flood...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@545 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 28 Jul 2001 17:00:31 +0000 (17:00 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Fix minor typo; I should test-compile *before* I commit, *sigh*.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@544 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 28 Jul 2001 16:57:34 +0000 (16:57 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Forward-port of last minute changes in u2.10.10.pl15; merge ChangeLog.10
from that branch.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@543 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 27 Jul 2001 22:15:33 +0000 (22:15 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Code to disable IP options was removed early on in the u2.10.11 release
cycle, apparently due to a misunderstanding of what the code was trying to
accomplish.  There are only a handful of IP options available today, and
none of them affect performance...whereas some (namely, source routing) can
affect security.  The code that was removed (and which is added back in
this patch) disables those options.  When a source route is removed, the
spoofed origin can't receive packets from the server.  If the source route
were *not* removed, a spoofer would receive the anti-spoof ping, and thus
be able to return it, re-opening the IP spoof attack.  Note: This does not
affect TCP options; those are critical to performance, but they are only
interpreted by the TCP layer, and thus are enclosed in the TCP-controlled
portion of the IP packet.  IP options are contained in the IP header.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@539 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 26 Jul 2001 01:36:45 +0000 (01:36 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Turn on HEAD_IN_SAND_REMOTE by default for the release.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@538 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 25 Jul 2001 23:59:45 +0000 (23:59 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Pretty up version reports in /trace when we've got debugging set up.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@536 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 21 Jul 2001 23:05:51 +0000 (23:05 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

If servers are disconnected through a call to exit_client()--say by a squit
or something else, perhaps an access check--the server would send a raw
message like "ERROR :Closing Link [...]".  The server interprets "ERROR" as
a numeric nick, and since in most cases, that numeric nick doesn't exist,
it ignores the message.  This means that servers that closed the connection
frequently did so without the proper (and useful) error message.  This fix
simply uses sendrawto_one() only for clients, and uses sendcmdto_one() for
servers, fixing the error.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@534 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: delete <delete@cyberabuse.org>
Kevin L. Mitchell [Thu, 19 Jul 2001 00:15:36 +0000 (00:15 +0000)]
Author: delete <delete@cyberabuse.org>
Log message:

Added missing 'e'

(Reviewed by Kev <klmitch@mit.edu>)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@533 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: delete <delete@cyberabuse.org>
Kevin L. Mitchell [Thu, 19 Jul 2001 00:10:42 +0000 (00:10 +0000)]
Author: delete <delete@cyberabuse.org>
Log message:

Beginning to update/translate some of the important out-of-date
documentation.

(Reviewed by Kev <klmitch@mit.edu>)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@532 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Tue, 17 Jul 2001 14:15:23 +0000 (14:15 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Remove spurious protocol violation notices by backing off on the required
parameter count for BURST.  These can be sent if all users on a channel
with no modes set get collided off during the burst.  If the channel
remains empty after the BURST is complete, it will be garbage-collected
as before during the processing of END_OF_BURST.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@531 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 12 Jul 2001 15:29:34 +0000 (15:29 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

IPcheck sucks large, hairy rocks.  In this case, local clients were not
getting FLAGS_IPCHECK set, so the connected count in the IP registry was
not getting decremented when they exited.  Moreover, IPcheck_remote_connect
set this bit itself, but IPcheck_local_connect cannot because the client
doesn't even exist yet.  This means that the bit has to be set in s_bsd.c.
This is pretty darned annoying, but what else can one do?  This should at
least fix one problem we've been having with the IPcheck code.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@530 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 11 Jul 2001 15:40:15 +0000 (15:40 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Hopefully correct a condition that can cause the server to chew CPU by not
clearing a particular fd--POLLHUP was not being caught.  Please test to see
if this fixes the problem!

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@529 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 9 Jul 2001 16:33:37 +0000 (16:33 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Stomp some warnings discovered on NetBSD, on an alpha running NetBSD, and
under -O1 instead of -O3.  Remaining: "statement with no affect" in an
assert on line 489 of fda.c; pointer type mismatch warning for calls to
getsockopt() in the engines--due to NetBSD's use of socklen_t, which may
not always be available.  The former could be solved by removing the
assert and testing the condition during the configure stage; the latter
could be solved by defining socklen_t ourselves at configure time.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@528 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: jv <unknown>
Perry Lorier [Tue, 3 Jul 2001 09:29:48 +0000 (09:29 +0000)]
Author: jv <unknown>
Log message:

Updated numeric.h merged numerics in from other networks.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@527 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 29 Jun 2001 20:41:35 +0000 (20:41 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

A user that did mode <nick> -owsg would not stop getting server notices;
fixed so that the snomask is cleared if FLAGS_SERVNOTICE isn't set.  This
is a bit redundant, due to the design of set_user_mode()...

Thanks to Braden <dbtem@yahoo.com> for spotting this one.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@526 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 29 Jun 2001 18:00:04 +0000 (18:00 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Some pre-release touch-ups: default to enabling kqueue and /dev/poll
engines, add messages for installation prefix checks, and turn
CONFIG_OPERCMDS off

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@525 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 29 Jun 2001 16:15:56 +0000 (16:15 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Bring ChangeLog.10 up-to-date

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@524 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 29 Jun 2001 15:51:03 +0000 (15:51 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Write doc/readme.chroot; remove a bunch of code commented out with #if 0;
remove the last vestiges of sprintf_irc() and use ircd_snprintf() instead.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@523 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 29 Jun 2001 02:47:26 +0000 (02:47 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Makefile (build system) tuning: create directories before installing into
them; detect changes to sub-Makefiles and rebuild them properly; tuning to
permit VPATH operation.

VPATH operation is a very useful tool for developers and individuals who
need to compile from the same source tree on multiple platforms; it allows
you to build the server from a directory other than your source directory.
Simplest way to do it is create your build directory, cd into it, then use
something like ../relative/path/to/ircu2.10/configure.  The configure
script will build the Makefiles and necessary directories in the current
directory.  Caveat: "make depend" will not work properly with VPATH for two
basic reasons: chattr.tab.c will be missing; and the dependancies generated
will be relative paths into your source directory.  The latter can be
corrected by changing the -I flags fed to the gcc -MM invocation; the
former might be corrected by substituting <> for "" in ircd_string.c.
Realistically, the whole "make depend" infrastructure should probably be
rototilled, but I think I'll just move us to automake in u2.10.12.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@522 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 28 Jun 2001 21:40:57 +0000 (21:40 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

This should be the last of the code required for u2.10.11 before release.
Not the last of the documentation, unfortunately, but you can't have
everything...Anyway, this implements restrictions on the G-line mask for
ordinary operators to keep accidental *@* G-lines from being set.  In
particular, if the host mask contains any wildcards or if the G-line
would impact 20 or more users (this number is configurable), then the
G-line would have to be forced by doing !+*@host.mask.goes.here or
whatever.  This check is also smart enough to not allow *@*foo.com or
*@127.0.0.1/15 bans, either.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@521 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Braden <dbtem@yahoo.com>
Kevin L. Mitchell [Wed, 27 Jun 2001 14:57:02 +0000 (14:57 +0000)]
Author: Braden <dbtem@yahoo.com>
Log message:

Updated example.conf describing various changes to the configuration file.
(Reviewed by Kev <klmitch@mit.edu>.)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@520 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 27 Jun 2001 14:24:47 +0000 (14:24 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

More forward-ports from pl15

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@519 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 25 Jun 2001 16:12:09 +0000 (16:12 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Forward-port of several pl15 changes to u2.10.11; waiting on clarification
on the supported.h changes before I forward-port those.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@517 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 22 Jun 2001 20:18:23 +0000 (20:18 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Adding my wrapper script, suitably re-commented and with the addition of
the ability to chroot, to the release.  This script allows one to set the
hard file descriptor limit (using -l), the root directory (using -c), and
the user ID (using -u), and runs a given command.  This program should NOT
be installed setuid, but must be run as root.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@512 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 22 Jun 2001 19:46:18 +0000 (19:46 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Document each feature, along with a document about how to configure logging.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@511 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 21 Jun 2001 23:28:53 +0000 (23:28 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Changing the way configuration is done has its problems--no one pays
attention to anything you say about it.  I've added a notice warning users
that "make config" is deprecated.  I've also added a script to help
migrate an existing tree to the new way of doing things.  I've done a lot
of testing of this script, but it could still get some things wrong; it's
pretty complicated.  Enjoy!

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@510 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 21 Jun 2001 15:48:16 +0000 (15:48 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Add a shell script that can be used to prepare a new root by copying all
necessary libraries to the appropriate places.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@509 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 20 Jun 2001 20:56:32 +0000 (20:56 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Beginning to update some of the important out-of-date documentation.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@508 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 15 Jun 2001 23:45:06 +0000 (23:45 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

This is the last of the API documentation that I set out to write.  Enjoy!

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@505 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 15 Jun 2001 20:53:40 +0000 (20:53 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Finished up the events API documentation; wrote documentation for gline,
ircd_snprintf, motd, msgq, privileges, and the send functions.  Still to
document: modebuf, mode_parse(), joinbuf, and jupe.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@504 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 14 Jun 2001 18:23:24 +0000 (18:23 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Finally fix the long-standing compile warning in table_gen.c.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@502 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 13 Jun 2001 19:24:48 +0000 (19:24 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Fix a couple of mistakes in existing API documentation; begin writing
documentation for the new events subsystem.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@499 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 11 Jun 2001 15:12:38 +0000 (15:12 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

*mumble* *mumble* *frotz*

I wondered why the server was trying to find the user structure describing
another server...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@497 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sun, 10 Jun 2001 12:38:56 +0000 (12:38 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Changes necessary to make SETTIME always be in the priority queue.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@496 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sun, 10 Jun 2001 11:58:40 +0000 (11:58 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Noticed that WALLOPS wasn't being put into the server's priority queues;
fixed.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@495 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sun, 10 Jun 2001 10:44:00 +0000 (10:44 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Remove check on LPATH; it's not critical to the server's operation even in
DEBUGMODE.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@494 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 9 Jun 2001 01:34:17 +0000 (01:34 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Implement a mechanism for servers to indicate to the network that they are
hubs, servers, or both.  We take parv[7], an unspecified unsigned int in
previous versions, and turn it into a mode-like string--it's not actually a
mode in the /mode #channel sense, but it looks similar.  This works in
conjunction with two new flags, FLAGS_HUB and FLAGS_SERVICE.  There is
currently no user-visible impact of this change.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@493 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 8 Jun 2001 23:12:17 +0000 (23:12 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

When HEAD_IN_SAND_SNOTICES is #define'd, there is no longer any reason to
hide the nickname of an operator using, say, /OPMODE (except in the actual
MODE command sent to the channel).  Therefore, whenever
HEAD_IN_SAND_SNOTICES is #define'd, /OPMODE, /CLEARMODE, /GLINE, and /JUPE
generate server notices containing the generating operator's nickname.

The old chroot() and setuid() support code has been removed.  There are
plenty of code paths that get traversed before we even hit the setuid
stuff, which is a security risk.  There're much better ways of handling
setuid operation in the first place, which is what we're going to move to.
I will write documentation and preparation scripts for this.

Previously, whenever a user that is GLINEd or a server that is JUPEd showed
up on line from a remote server, the GLINE or JUPE was retransmitted.  To
prevent the network from being clogged up, I added a parameter to allow a
server to acknowledge that that JUPE/GLINE is known, and being
intentionally ignored.  After some discussion, however, it was decided to
remove all of that code.  Now the only retransmits left in the code are
ones where the remote server sends a JUPE/GLINE with a bad mod time...and
all that hair is now gone.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@492 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 7 Jun 2001 21:09:51 +0000 (21:09 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

This is mostly just a forward-port of some of the stuff that's just gone
into pl15.  It seems to work, mostly...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@491 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 7 Jun 2001 15:36:40 +0000 (15:36 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Bogus assert rendered poll()-based engine unusable; fixed

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@488 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 7 Jun 2001 00:29:48 +0000 (00:29 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

This is the long awaited merge of the events branch with the main-line.
The events branch is now defunct.  Enjoy...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@487 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

22 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 21 May 2001 21:44:23 +0000 (21:44 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Discovered while trying to compile-check the events branch on Solaris: on
some systems, s_addr is a *macro*.  It combines poorly with structures that
use that as an element name.

(pull-up from u2_10_11_alpha_events)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@460 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 7 May 2001 21:21:18 +0000 (21:21 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

This is an entirely new build system for ircd.  The basics have been tested
but tuning will probably be necessary.  Unfortunately, documentation has
not yet been updated.  Please note the change to the way chroot will be
handled--the environment, including uid/gid, must be set up by an external
program, and you must give ./configure the --with-chroot=<dir> option.

Read ./configure --help for more information.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@444 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 2 May 2001 02:37:33 +0000 (02:37 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Shave one more yak: remove the last vestiges of TIME_T_FMT and friends.
This has not yet been compile-tested...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@443 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Tue, 1 May 2001 11:38:34 +0000 (11:38 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

doc/iauth.txt - Hybrid's iauth protocol.  I intend to try and be compatible
with this at least with only minor extentions that we require (and then try
and get those extensions merged back into the Hybrid tree).  IRCnet has an
iauth protocol but theres is A) wasteful of FD's  B) they haven't been
cooperative in the past in sync'ing up between daemons.

doc/linux-poll.patch - Patch required to stop linux 2.2 deadlocking when under
lots of strain (thousands of clients)

{ircd,include}/iauth.{c,h} - Starts of an iauth implementation.  I have to
sleep now, so I'll try and finish it later.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@442 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Tue, 1 May 2001 09:49:42 +0000 (09:49 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

A few cleanups, let anyone /msg +k users without target limiting (are users
really going to spam X and euworld?  and if so, do they CARE?) this is so
if users are being flooded they can still /msg X to ban users, and if they
run out of targets on login they can still use X etc.  Oh, and made chkconf
compile so we can make install again.  Who knows if it actually *works*.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@441 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Tue, 24 Apr 2001 01:17:14 +0000 (01:17 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

I noticed that the netsplit server notice used comment1 instead of refering
to the servers directly, with the anticipated--and confusing--results.  Now
fixed.

(pull-up from u2.10.10.pl14)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@438 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 23 Apr 2001 20:28:50 +0000 (20:28 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

forward-ports could become a full-time job if we're not careful...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@437 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 23 Apr 2001 19:19:36 +0000 (19:19 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

duh ^ 2

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@436 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 23 Apr 2001 19:09:05 +0000 (19:09 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

duh

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@435 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 23 Apr 2001 18:42:02 +0000 (18:42 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Pull up the m_whois fix to allow local opers to see server indications,
also.  The missing oper and idle time indications were fixed during the
original forward port, but I forgot about the bug in the first place, and
did not manage to fix it in u2.10.10.pl14

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@432 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 21 Apr 2001 21:49:14 +0000 (21:49 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Some small, misc. changes, along with the first step in redesigning the
configuration system.  runmalloc.[ch] finally retired, msgq_integrity()
retired, and C++-style // comments replaced with C-style /* */ comments,
since, unfortunately, all the world's not gcc.  Almost all .c files contain
an include for config.h first thing, now, and all of the includes in .h
files for config.h have been removed, since they are now redundant.

As I say, this is only the first step toward redesigning the configuration
system; make config shouldn't be necessary anymore since most of the
plethora of compile-time options have been made run-time configurable.
This change includes those changes that must be made to the .c files, and
there shouldn't be any other change that will affect them, except possibly
some macro changes in configure.in.  The end goal is to get rid of the
config subdirectory completely, and arrange things so that the remaining
compile-time options--things like DEBUGMODE and CONFIG_NDEBUG--can be
given on the ./configure command line.  Changes will also include a way to
cache those results.

Testing: Server has been compiled and run with no obvious ill effects as a
result of the changes.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@429 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Fri, 20 Apr 2001 20:56:56 +0000 (20:56 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Hide server name for /who, too; allow users to see their own server name
in /whois.  Changes still untested...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@427 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 18 Apr 2001 20:48:19 +0000 (20:48 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Ok, ok, I'll run make depend too...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@422 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 18 Apr 2001 20:38:06 +0000 (20:38 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Save the $R for realname K-lines

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@421 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 18 Apr 2001 20:25:58 +0000 (20:25 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Pull-up of various features that have been added to the ircu2.10.10,
including such things as the advisory lock-based multiple execution
exclusion, K-lines by realname, and the HEAD_IN_SAND stuff.

Testing: The K-lines by real name are untested, and all of the K-line
infrastructure will need testing, owing to extensive changes to how they
work.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@419 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 16 Apr 2001 20:41:33 +0000 (20:41 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Based on discussion with Bleep, and the change in /wallops implementation
that has taken place on u2.10.10.pl14, sendcmdto_flag_butone() has been
recast to broadcast them to all servers, regardless of what sorts of users
those servers have on/behind them.  This reduces CPU wasted on /wallops to
the minimum practical, with only a small increase in protocol overhead--in
my opinion, that overhead is not enough to worry about.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@415 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 16 Apr 2001 19:45:08 +0000 (19:45 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Implementation of WALLUSERS and the various oper restrictions.  These are
currently not switchable, but it would be trivial to make them switchable
through the features subsystem; future enhancements may do just that.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@412 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Sun, 15 Apr 2001 06:58:57 +0000 (06:58 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Lots of little changes I've been sitting on, mostly minor cleanups to m_*.c

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@404 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Patrick Desbiens <delete@dovation.net>
Perry Lorier [Sat, 31 Mar 2001 00:04:57 +0000 (00:04 +0000)]
Author:  Patrick Desbiens <delete@dovation.net>
Log message:

French translation of Install

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@390 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Ghostwolf <foxxe@wtfs.net>
Joseph Bongaarts [Wed, 14 Mar 2001 05:53:30 +0000 (05:53 +0000)]
Author: Ghostwolf <foxxe@wtfs.net>
Log message: Tweaked the openbsd hack so IOV_MAX would still get defined in limits.h

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@386 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor:Ghostwolf <foxxe@wtfs.net>
Joseph Bongaarts [Thu, 8 Mar 2001 22:20:31 +0000 (22:20 +0000)]
Author:Ghostwolf <foxxe@wtfs.net>
Log message:
Makes ircu compile under OpenBSD

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@385 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 12 Feb 2001 18:47:45 +0000 (18:47 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Fix G-line bugs reguarding U-lined servers that Maniac- pointed out; fix a
bug in /list

1) If a new server signed on and a U-lined server re-issued a G-line,
   intermediate servers would not pass on that message.  Logic has been
   added to detect that it's a re-issued G-line, and the existing G-line is
   repropagated.  Note that the expire time used is the time we think the
   G-line has left, not what the U-lined server tells us.
2) If a U-lined server attempted to revoke a G-line, and we didn't have
   that G-line, not only would we ignore the message, we would fail to
   propagate it and return a "not enough parameters" reply.  Corrected by
   manually repropagating the G-line removal.
3) If a U-lined server attempted to add (or update, or re-issue) a G-line
   we knew about, that G-line's lastmod time would be updated, causing us
   to no longer consider the G-line as having been issued by a U-lined
   server.  This causes promotions we don't want occuring.  Corrected by
   prohibiting lastmod updates when the existing lastmod is 0.
4) The /list command would not deal properly with "LIST #channel", but
   would do the right thing if we did "LIST #channel <anything else>".
   This was just a logic inversion problem--I said "parc != 2" when I meant
   "parc == 2".

Testing:

The /list command now works correctly.  G-lines issued by U-lined servers
are doing the right thing.  I have not checked that G-lines issued by opers
are still working correctly, so this needs to be checked.  Also, all forms
of local G-line need to be double-checked.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@384 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Bleep <twhelvey1@home.com>
Bleep [Thu, 8 Feb 2001 04:20:08 +0000 (04:20 +0000)]
Author:      Bleep <twhelvey1@home.com>
Log message: Fix for protocol violation spam bug. See the ChangeLog for
rant. :)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@383 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 29 Jan 2001 17:46:31 +0000 (17:46 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Fixes for 3 bugs:

1) /mode <nick> -o wasn't propagated; the privileges were being set before
   send_umode_out() could get at them, so the PRIV_PROPAGATE setting went
   away.

2) /mode #channel +b banmask, under certain circumstances, would allow
   multiple bans of the exact same mask to be added to the channel.

3) /mode #channel +b banmask would leak memory if another ban of the exact
   same mask was already present on the channel (and bug #2 wasn't
   triggered).

Testing:

Compiled and ran; unable to duplicate the errors, now.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@382 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 24 Jan 2001 17:32:39 +0000 (17:32 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Fix buffer overflow problem; tune lengths fed into ircd_vsnprintf() to take
into account the fact that ircd_vsnprintf() already takes \0 into account.

Testing:

The old hack code to test for this buffer overflow is still in place,
intentionally, to catch any other problems that may crop up.  Otherwise,
this code has been compiled and tested and produces the correct results--
never knew I could write a simple client that rapidly ;)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@381 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 22 Jan 2001 16:24:53 +0000 (16:24 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Remove msgq_map(), since we're using only msgq_mapiov().  Tweak some buffer
length calculations to prevent off-by-one errors.  Unfortunately, these
possible off-by-one errors cannot possibly cause the problems we're seeing,
so add some extra asserts and an incredibly ugly hack to detect the
problem's signature--a pointer transmuted to 0x8000a0d, corresponding to
\r\n\0 (+ first byte of pointer) as stored in memory.

Testing:

The changes compile and run--but we *want* this patch to dump core!  Make
absolutely sure you compile with -g.  Hopefully this'll catch the culprit,
or at least bring us one step closer to finding the problem.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@380 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Thu, 18 Jan 2001 16:08:03 +0000 (16:08 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Set client privs when a user is introduced by a remote server.

Testing:

Compiled and tested--remote opers have all expected privileges,
including PRIV_PROPAGATE...so they'll be propagated to their
uplinks!

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@379 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 17 Jan 2001 17:50:25 +0000 (17:50 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

So BSDI 4.1 doesn't use poll(); interesting...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@378 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 17 Jan 2001 15:47:48 +0000 (15:47 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Separate whowas_clean() from MyFree() call; default LOCOP_KILL to on.

Testing:

These changes are "clearly" correct, and so I have not even compile-checked
them; sorry.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@377 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 15 Jan 2001 15:49:43 +0000 (15:49 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Maniac- reported that opers weren't being properly displayed by whois; this
was tracked down to bugs in the privilege setting routine.  Bug 1) feattab
had some privileges bit-wise OR'd together, which stopped working when the
privileges became small integers specifying a bit position, rather than the
bits themselves; corrected by splitting up all the OR'd lines.  Bug 2)
antiprivs was not being applied to privs; this turned out to be an off-by-
one error in the loop; corrected by using <= instead of just <

Testing:

Tested for the behavior Maniac- reported; this has been corrected.  Privs
are now being set correctly as well.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@375 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sun, 7 Jan 2001 04:11:22 +0000 (04:11 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

These don't belong in this branch (yet)...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@364 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sun, 7 Jan 2001 04:00:27 +0000 (04:00 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Beginning to rough in how the event model will work...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@363 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 3 Jan 2001 20:05:58 +0000 (20:05 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Fixed a minor bug in the privilege setup function; featurized
NICKNAMEHISTORYLENGTH--by rewriting much of whowas.c.

Testing:

I've tested the new feature and made sure that whowas does what's expected,
and it seems to.  Brute-force it to make sure, but we should be fine...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@355 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Wed, 3 Jan 2001 03:03:04 +0000 (03:03 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Add notify functionality to features interface; featurize
DEFAULT_LIST_PARAM, rewriting much of m_list in the process.

Testing:

It compiles and runs and appears to function properly; please brute-force.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@354 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Tue, 2 Jan 2001 21:47:31 +0000 (21:47 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Some efficiency enhancements in m_motd.c; a new way to set the PRNG's seed
and some randomness enhancements (feedback); featurization of many compile-
time options; a new feature flag to inhibit all display of something, like,
say, the random seed.

Testing:

Compiles, no warnings; runs without apparent problems.  Please brute-force
it to see if any of the features can be broken.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@353 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Tue, 2 Jan 2001 08:26:51 +0000 (08:26 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

* Don't core if no motd present.  Thanks to Amarande for that one.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@352 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Tue, 2 Jan 2001 01:53:34 +0000 (01:53 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

* Added HekTik's fix to guppy's /msg's go to -n+m channels.

* Protocol violation stuff

* Protocol negotiation stuffs

* added another param to 004 for modes that have parameters.

* Ripped out more P09 crap.

* Probably buggered the entire thing up.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@351 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Tue, 19 Dec 2000 21:37:58 +0000 (21:37 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Removed last vestiges of GODMODE; made a whole bunch of formerly compile-
time options into run-time options through the features subsystem; bashed
a couple of bugs in ircd_log.c and m_ison.c; added a new "read-only" flag
to ircd_features.c.

Testing:

Compiles and runs; m_ison.c compiles.  Again, needs extensive testing; turn
the features on and off and see what happens.

NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE

Make sure you add "F:HUB:TRUE" to your ircd.conf if you normally turn HUB
on.  I may make HUB go away completely in the future, but not until
m_server gets rewritten from scratch.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@350 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Mon, 18 Dec 2000 21:24:00 +0000 (21:24 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Rearranged a couple of features to try to make things a little neater;
rearranged some code to make it more streamlined.

I also created a subdirectory with API documentation; this is for
documentation of special little subsystems, such as the features subsystem
or the logging system, or even something like modebuf's and MsgQ's.  Please
read doc/api/api.txt and tell me what you think...

Testing:

The features changes compile and link, but I have not performed run-time
tests.  The documentation that I have written should be mostly complete,
but let me know if you want more information...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@349 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years ago* ircd/os_bsd.c: Added os_set_tos for BSD users.
Greg Sikorski [Sat, 16 Dec 2000 20:23:55 +0000 (20:23 +0000)]
* ircd/os_bsd.c: Added os_set_tos for BSD users.

Author: Greg Sikorski <gte@atomicrevs.demon.co.uk>
Log message:

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@348 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Kev <klmitch@mit.edu>
Kevin L. Mitchell [Sat, 16 Dec 2000 18:56:20 +0000 (18:56 +0000)]
Author: Kev <klmitch@mit.edu>
Log message:

Several things: First, fixed a bug in do_whois.  Then defined some new
features so I can turn off OPER_SET.  Afterwards, make boolean options also
accept "ON" and "OFF".  Finally, defined a new command to report an
operator's privileges.  Also fixed Isomer's change to use the F_I macro
properly (after adding flags to the macros...).

Testing:

Compiled and run and everything seems to be OK.  Again, brute-force it and
make sure opers have the privileges they're supposed to have.  Also note
that feature settings only apply to opers that just oper'd up; if you oper
up, then change a feature setting, it won't affect your privileges.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@347 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

23 years agoAuthor: Isomer <isomer@coders.net>
Perry Lorier [Sat, 16 Dec 2000 12:56:07 +0000 (12:56 +0000)]
Author: Isomer <isomer@coders.net>
Log message:

Added TOS twiddling to Kev's "feature" subsystem.  It compiles, who knows
if it will run...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@346 c9e4aea6-c8fd-4c43-8297-357d70d61c8c