]>
jfr.im git - solanum.git/log
Jilles Tjoelker [Fri, 5 Feb 2010 23:18:27 +0000 (00:18 +0100)]
Pass certfp to other servers and show it in whois. Do not show it on connect.
The server protocol for this is
:<uid> ENCAP * CERTFP :<40 hex chars>
both in new user introductions and in burst.
As in oftc-hybrid, only the user themselves and opers can see the certfp.
Displaying the certfp on connect seems unnecessary to me,
the user can whois themselves if needed.
Jilles Tjoelker [Tue, 2 Feb 2010 23:46:14 +0000 (00:46 +0100)]
Fix serno.h for compiles from Mercurial.
Jilles Tjoelker [Tue, 2 Feb 2010 23:44:51 +0000 (00:44 +0100)]
Apply ratbox3 workaround for too permissive inet_pton6():
Any kline (or various other things) containing * or ? is
a mask kline and not an IP kline. Ideally, rb_inet_pton_sock()
would return failure for those, but in practice this is not
always the case for IPv6.
Such a kline that is erroneously treated as an IP line
likely matches way fewer IPs than expected.
William Pitcock [Sun, 31 Jan 2010 23:35:15 +0000 (17:35 -0600)]
Clarify CertFP message.
Jilles Tjoelker [Sun, 31 Jan 2010 18:04:20 +0000 (19:04 +0100)]
Add certfp support to libratbox and ssld.
This lets a user connect with a client certificate, and
passes the certificate's fingerprint to ircd, which
currently just notices it to the user.
A new ssld->ircd message 'F' is used to pass on the
fingerprint.
This is only for OpenSSL for now, not GNUTLS.
William Pitcock [Sun, 31 Jan 2010 01:21:28 +0000 (19:21 -0600)]
Automated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Sun, 31 Jan 2010 01:21:17 +0000 (19:21 -0600)]
modreload: Causing an entire 50,000 user network to crash due to user-error is a bad idea, don't let it happen again by not allowing paths in /modreload.
Jilles Tjoelker [Sun, 31 Jan 2010 00:40:43 +0000 (01:40 +0100)]
Slightly tighten auth{} duplicate check:
If the existing auth{} block has no auth_user, it will
trump any auth{} block for the same u@h.
Jilles Tjoelker [Sun, 31 Jan 2010 00:36:37 +0000 (01:36 +0100)]
Take auth_user into account when detecting redundant/duplicate auth{}.
from ircd-seven (spb)
Jilles Tjoelker [Sun, 31 Jan 2010 00:30:25 +0000 (01:30 +0100)]
No need to be paranoid about clearing auth_user.
It is a username, not a password.
Jilles Tjoelker [Sun, 31 Jan 2010 00:29:08 +0000 (01:29 +0100)]
Fix memory leak with auth_user.
from ircd-seven (spb)
Jilles Tjoelker [Sat, 30 Jan 2010 14:57:10 +0000 (15:57 +0100)]
Remove remnants of <foo>_t typedefs.
Jilles Tjoelker [Wed, 27 Jan 2010 20:05:10 +0000 (21:05 +0100)]
Fix /links buffer overflow.
Jilles Tjoelker [Sun, 24 Jan 2010 18:37:00 +0000 (19:37 +0100)]
Fix op-moderate (cmode +z) for channel names with '@'.
Jilles Tjoelker [Fri, 22 Jan 2010 01:02:45 +0000 (02:02 +0100)]
Do not read in help files starting with a dot (including dot and dot-dot).
Jilles Tjoelker [Fri, 22 Jan 2010 00:41:48 +0000 (01:41 +0100)]
Fix include/serno.h generation.
Apparently #value# is no longer special in hg templates.
Jilles Tjoelker [Thu, 21 Jan 2010 23:09:56 +0000 (00:09 +0100)]
Fix memory leak and bad error reporting with posix_spawn():
* an initialized posix_spawnattr_t must be destroyed
* posix_spawn() returns an error number instead of setting errno
libratbox trunk r26730
Stephen Bennett [Thu, 21 Jan 2010 16:27:34 +0000 (16:27 +0000)]
Don't cache files that are empty or not files. Avoids crashing on the likes of 'HELP .'
Jilles Tjoelker [Tue, 19 Jan 2010 23:03:57 +0000 (00:03 +0100)]
Put back
fb7d6089158e , not setting large_ctcp_sent for CTCP ACTION.
William Pitcock [Tue, 19 Jan 2010 08:11:04 +0000 (02:11 -0600)]
Merge +C (no CTCP to channels) from ircd-seven.
William Pitcock [Tue, 19 Jan 2010 07:47:27 +0000 (01:47 -0600)]
Automated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Tue, 19 Jan 2010 07:47:21 +0000 (01:47 -0600)]
supported: Add CLIENTVER=3.0 to indicate presence of 3.0 core capabilities (such as CAP, extended WHO, etc) as requested by LifeIsPain.
Jilles Tjoelker [Thu, 14 Jan 2010 00:12:16 +0000 (01:12 +0100)]
Do not set large_ctcp_sent for CTCP ACTION as it does not request a reply.
Jilles Tjoelker [Sat, 9 Jan 2010 21:14:53 +0000 (22:14 +0100)]
If a removed resv was temporary, mention this in the server notice.
This agrees with xline.
Jilles Tjoelker [Sat, 9 Jan 2010 21:12:06 +0000 (22:12 +0100)]
Add back unresv (permanent resv) notices.
Jilles Tjoelker [Sat, 9 Jan 2010 18:08:48 +0000 (19:08 +0100)]
Put back resv_forcepart.
This undoes erroneous revert in
a3c064b3b8a2 .
Jilles Tjoelker [Fri, 8 Jan 2010 17:46:29 +0000 (18:46 +0100)]
Complete the move of xlines and resvs from aconf->name to aconf->host.
Jilles Tjoelker [Fri, 8 Jan 2010 17:17:16 +0000 (18:17 +0100)]
bantool: change empty oper fields to "unknown".
Otherwise they would cause a crash when ircd tries to load them.
Jilles Tjoelker [Fri, 8 Jan 2010 17:13:47 +0000 (18:13 +0100)]
Do not change \s in xlines to spaces, match_esc() treats \s correctly.
This undoes erroneous revert in
a3c064b3b8a2 .
Jilles Tjoelker [Fri, 8 Jan 2010 15:02:30 +0000 (16:02 +0100)]
Fix build: we need -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION=1
for the sqlite sources.
William Pitcock [Fri, 8 Jan 2010 00:17:08 +0000 (18:17 -0600)]
Add back missing notices.
William Pitcock [Fri, 8 Jan 2010 00:14:15 +0000 (18:14 -0600)]
Fix up more things with bandb.
William Pitcock [Fri, 8 Jan 2010 00:06:15 +0000 (18:06 -0600)]
Load in new bans from bandb on startup.
William Pitcock [Thu, 7 Jan 2010 23:50:49 +0000 (17:50 -0600)]
Make this work again.
William Pitcock [Thu, 7 Jan 2010 23:49:08 +0000 (17:49 -0600)]
Make this work again.
William Pitcock [Thu, 7 Jan 2010 23:37:52 +0000 (17:37 -0600)]
Readd some oper notices.
William Pitcock [Thu, 7 Jan 2010 23:22:44 +0000 (17:22 -0600)]
Start bandb on ircd initialization.
William Pitcock [Thu, 7 Jan 2010 23:19:03 +0000 (17:19 -0600)]
Update modules to use bandb_add()/bandb_del().
William Pitcock [Thu, 7 Jan 2010 23:10:16 +0000 (17:10 -0600)]
Add bandb IRCd APIs.
William Pitcock [Thu, 7 Jan 2010 23:00:24 +0000 (17:00 -0600)]
Add sqlite3 to build.
William Pitcock [Thu, 7 Jan 2010 23:00:18 +0000 (17:00 -0600)]
bantool: Fix compilation error.
William Pitcock [Thu, 7 Jan 2010 22:55:34 +0000 (16:55 -0600)]
Add DBPATH.
William Pitcock [Thu, 7 Jan 2010 22:51:32 +0000 (16:51 -0600)]
Run autoreconf.
William Pitcock [Thu, 7 Jan 2010 22:51:09 +0000 (16:51 -0600)]
Link bandb to build.
William Pitcock [Thu, 7 Jan 2010 22:50:34 +0000 (16:50 -0600)]
Add bandb code.
William Pitcock [Thu, 7 Jan 2010 22:02:56 +0000 (16:02 -0600)]
Automated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Thu, 7 Jan 2010 22:02:50 +0000 (16:02 -0600)]
Update trunk to 3.2 (non-release).
Jilles Tjoelker [Fri, 1 Jan 2010 21:55:25 +0000 (22:55 +0100)]
SCAN UMODES: default list-max to 500, like a global WHO.
Jilles Tjoelker [Fri, 1 Jan 2010 21:46:34 +0000 (22:46 +0100)]
Update some copyright years.
Jilles Tjoelker [Fri, 25 Dec 2009 23:25:52 +0000 (00:25 +0100)]
ts6-protocol.txt: mention meaning of capabs EX, IE, SERVICES, KNOCK.
Jilles Tjoelker [Mon, 21 Dec 2009 15:58:25 +0000 (16:58 +0100)]
Remove FLAGS_SENDQEX, fix sendq exceeded snotes for servers.
from ircd-ratbox
Jilles Tjoelker [Tue, 17 Nov 2009 23:00:07 +0000 (00:00 +0100)]
Add two more reasons why ssld_count>1 can be useful: bugs and fd limits.
Jilles Tjoelker [Sun, 15 Nov 2009 22:11:18 +0000 (23:11 +0100)]
ssld: Fix an fd leak when closing connections.
Lightly tested.
Jilles Tjoelker [Sun, 15 Nov 2009 21:41:02 +0000 (22:41 +0100)]
ssld: Do not crash if not all fds in a message could be received.
Actually fill the mod_ctl_buf_t.nfds field.
William Pitcock [Sun, 25 Oct 2009 02:07:53 +0000 (21:07 -0500)]
Automated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Sun, 25 Oct 2009 02:07:41 +0000 (21:07 -0500)]
If you're going to censor my jokes, at least do it right.
Jilles Tjoelker [Sun, 18 Oct 2009 19:08:37 +0000 (21:08 +0200)]
Note that blacklist{} only accepts host/reason pairs, no host+host+reason.
Jilles Tjoelker [Sat, 19 Sep 2009 22:44:47 +0000 (00:44 +0200)]
Use full (:n!u@h) prefix for sending ETB from a user to clients.
Jilles Tjoelker [Sat, 19 Sep 2009 19:24:35 +0000 (21:24 +0200)]
Force part local users (not resv_exempt) on channel resv.
A notice will be sent to any force parted users that the channel
is temporarily/permanently unavailable on the server.
A new config option channel::resv_forcepart can be used to disable this.
from ircd-ratbox (dubkat)
William Pitcock [Mon, 13 Jul 2009 17:55:35 +0000 (12:55 -0500)]
Display o:line "nickname" in global oper-up messages.
Jilles Tjoelker [Thu, 9 Jul 2009 22:27:01 +0000 (00:27 +0200)]
Fix fd passing on FreeBSD/amd64 and possibly Solaris/sparc.
The number of file descriptors in the message was not
determined correctly.
Jilles Tjoelker [Wed, 17 Jun 2009 22:37:19 +0000 (00:37 +0200)]
Show yyerror() parse errors on stderr on startup.
Noticed by: spb
Jilles Tjoelker [Tue, 9 Jun 2009 16:46:40 +0000 (18:46 +0200)]
Correct clone command.
Jilles Tjoelker [Wed, 3 Jun 2009 22:01:57 +0000 (00:01 +0200)]
Disallow changing away status via /presence.
Allowing this desynchronizes clients and servers that
do not know about this extension without good reason.
If you want to allow this, change it to spit out the
usual AWAY protocol.
Jilles Tjoelker [Wed, 3 Jun 2009 21:49:50 +0000 (23:49 +0200)]
Reject presence updates with too long keys, instead of truncating them
and causing soft assertion failures. Values are still
silently truncated though.
Jilles Tjoelker [Wed, 3 Jun 2009 21:38:07 +0000 (23:38 +0200)]
Add new constants for presence key/value lengths
instead of overloading NICKLEN/TOPICLEN.
Jilles Tjoelker [Wed, 3 Jun 2009 21:18:07 +0000 (23:18 +0200)]
Remove two obsolete constants.
Stephen Bennett [Tue, 8 Dec 2009 19:23:32 +0000 (19:23 +0000)]
Merge
Stephen Bennett [Tue, 8 Dec 2009 19:22:55 +0000 (19:22 +0000)]
Revert all presence-related changes
Jilles Tjoelker [Sat, 5 Dec 2009 19:48:02 +0000 (20:48 +0100)]
Fix crashes when there are no alias blocks in the conf.
Jilles Tjoelker [Wed, 3 Jun 2009 21:18:07 +0000 (23:18 +0200)]
Remove two obsolete constants.
Jilles Tjoelker [Wed, 3 Jun 2009 18:44:37 +0000 (20:44 +0200)]
Do not send two 792 numerics when changing a metadata from one non-empty value to another.
Jilles Tjoelker [Wed, 3 Jun 2009 18:03:15 +0000 (20:03 +0200)]
Correct minimum parameter counts for PRESENCE.
Jilles Tjoelker [Wed, 3 Jun 2009 17:57:27 +0000 (19:57 +0200)]
ENCAPs cannot come from local clients, no need to check.
Jilles Tjoelker [Wed, 3 Jun 2009 17:54:49 +0000 (19:54 +0200)]
Remove special CAP presence handling of /whois away message.
This cannot work because /whois is executed remotely too
and CAPs aren't known remotely.
William Pitcock [Tue, 2 Jun 2009 07:55:45 +0000 (02:55 -0500)]
presence: m_presence module: Use safer get_metadata() where appropriate, to avoid crash possibilities.
William Pitcock [Tue, 2 Jun 2009 07:48:22 +0000 (02:48 -0500)]
presence: send..._with_capability...(): don't send if the client does not have the capab but isn't on a channel
William Pitcock [Tue, 2 Jun 2009 07:46:37 +0000 (02:46 -0500)]
presence: delete_metadata(): Free from the right heap.
William Pitcock [Tue, 2 Jun 2009 07:44:31 +0000 (02:44 -0500)]
presence: Use RPL_WHOISMETADATA.
William Pitcock [Tue, 2 Jun 2009 07:38:38 +0000 (02:38 -0500)]
presence: Add _butone() variant of sendto_common_channels_local_with_capability().
William Pitcock [Tue, 2 Jun 2009 07:36:18 +0000 (02:36 -0500)]
presence: Broadcast presence changes to peer clients with CLICAP_PRESENCE.
William Pitcock [Tue, 2 Jun 2009 07:32:07 +0000 (02:32 -0500)]
presence: Declare RPL_METADATACHG.
William Pitcock [Tue, 2 Jun 2009 07:28:02 +0000 (02:28 -0500)]
presence: Add sendto_common_channels_local_with_capability(), used for broadcasting presence updates.
William Pitcock [Tue, 2 Jun 2009 07:19:37 +0000 (02:19 -0500)]
presence: Declare RPL_WHOISMETADATA.
William Pitcock [Tue, 2 Jun 2009 07:17:42 +0000 (02:17 -0500)]
presence: If CLICAP_PRESENCE is enabled, then RPL_AWAY is replaced by the "away" keyword in the presence dataset.
As such, only fall back to legacy RPL_AWAY if CLICAP_PRESENCE is not set on source_p.
William Pitcock [Tue, 2 Jun 2009 07:14:44 +0000 (02:14 -0500)]
presence: Add CLICAP_PRESENCE.
This will enable broadcasting presence updates on channels.
William Pitcock [Tue, 2 Jun 2009 07:08:45 +0000 (02:08 -0500)]
presence: Remove no longer used away_heap.
William Pitcock [Tue, 2 Jun 2009 07:06:18 +0000 (02:06 -0500)]
presence: Replace stagnant free_away() call with delete_metadata(..., "away").
William Pitcock [Tue, 2 Jun 2009 07:03:51 +0000 (02:03 -0500)]
presence: Remove user.away, replaced by a metadata entry.
Cache the metadata retrieval value where feasible for minimal performance impact.
William Pitcock [Tue, 2 Jun 2009 06:53:05 +0000 (01:53 -0500)]
presence: Make set_metadata() erase any old metadata for an entry.
William Pitcock [Tue, 2 Jun 2009 06:50:40 +0000 (01:50 -0500)]
presence: Add get_metadata().
William Pitcock [Tue, 2 Jun 2009 06:45:43 +0000 (01:45 -0500)]
presence: Add m_presence module. This provides an ENCAP s2s interface and lowlevel client interface.
William Pitcock [Tue, 2 Jun 2009 06:41:44 +0000 (01:41 -0500)]
presence: Add set_metadata() and delete_metadata().
William Pitcock [Tue, 2 Jun 2009 06:32:09 +0000 (01:32 -0500)]
presence: Declare RPL_METADATASET and RPL_METADATAREM.
William Pitcock [Tue, 2 Jun 2009 06:29:58 +0000 (01:29 -0500)]
presence: Declare MetadataEntry struct.
William Pitcock [Sat, 30 May 2009 18:30:57 +0000 (13:30 -0500)]
presence: Create presence metadata tracking structures where appropriate.
William Pitcock [Sat, 30 May 2009 18:17:39 +0000 (13:17 -0500)]
struct Client: add a dictionary to contain presence metadata.
William Pitcock [Sat, 30 May 2009 18:16:01 +0000 (13:16 -0500)]
Automated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Sat, 30 May 2009 18:15:58 +0000 (13:15 -0500)]
Add irc_dictionary.h to stdinc. I'm lazy.
Jilles Tjoelker [Thu, 21 May 2009 21:11:32 +0000 (23:11 +0200)]
Remove check_banned_lines() code duplication.
We can just call check_dlines(), check_klines() and check_xlines().