]>
jfr.im git - solanum.git/log
Jilles Tjoelker [Sat, 6 Mar 2010 21:37:42 +0000 (22:37 +0100)]
Show d/kline setter to opers in stats/testline.
Jilles Tjoelker [Sat, 6 Mar 2010 21:27:54 +0000 (22:27 +0100)]
Hgignore some generated files.
Jilles Tjoelker [Sat, 6 Mar 2010 15:37:50 +0000 (16:37 +0100)]
Avoid crash if get_oper_name() somehow gave no {} for local oper.
Jilles Tjoelker [Sat, 6 Mar 2010 00:45:41 +0000 (01:45 +0100)]
BAN: Reject bans with insufficient non-wildcard characters.
Such bans are not applied locally, but are propagated normally.
They can only be removed on a server that applies them.
Note that normally KLINE will not accept such bans.
This is mainly for services, differing min_wildcard and
ircd changes.
Jilles Tjoelker [Fri, 5 Mar 2010 23:31:51 +0000 (00:31 +0100)]
Add /stats g to show propagated (global) klines.
Jilles Tjoelker [Fri, 5 Mar 2010 22:16:28 +0000 (23:16 +0100)]
Among bans with the same creation time, prefer the one with longest lifetime.
Jilles Tjoelker [Fri, 5 Mar 2010 21:53:35 +0000 (22:53 +0100)]
BAN: Avoid fake direction.
Jilles Tjoelker [Fri, 5 Mar 2010 21:51:47 +0000 (22:51 +0100)]
Remove +/- from the BAN message, instead indicating unban with duration=0.
A kline must now last at least one second since its creation time.
Also add better logic for bans that have already expired
when they come in.
Jilles Tjoelker [Fri, 5 Mar 2010 21:05:15 +0000 (22:05 +0100)]
Use memmove instead of memcpy where there is overlap (modunload).
Jilles Tjoelker [Fri, 5 Mar 2010 17:36:44 +0000 (18:36 +0100)]
Add propagated klines.
A KLINE command without the ON clause now sets a propagated
("global") ban. KLINE commands with the ON clause work as
before.
Propagated klines can only be removed with an UNKLINE command
without the ON clause, and this removes them everywhere.
In fact, they remain in a deactivated state until the latest
expiry ever used for the mask has passed.
Propagated klines are part of the netburst using a new BAN
message and capab. If such a burst has an effect, both the
server name and the original oper are shown in the server
notice.
No checks whatsoever are done on bursted klines at this time.
The system should be extended to XLINE and RESV later.
There is currently no way to list propagated klines,
but TESTLINE works normally.
Jilles Tjoelker [Fri, 5 Mar 2010 17:28:59 +0000 (18:28 +0100)]
kline: Fix oper reasons.
Jilles Tjoelker [Fri, 5 Mar 2010 16:28:47 +0000 (17:28 +0100)]
Fix --disable-balloc.
libratbox r26769
Jilles Tjoelker [Thu, 4 Mar 2010 23:37:56 +0000 (00:37 +0100)]
Skip propagated bans in rehash txlines/tresvs.
Jilles Tjoelker [Wed, 3 Mar 2010 23:21:22 +0000 (00:21 +0100)]
Add code to expire "propagated" bans.
The data structure is very simple: a dlink list of all propagated bans.
Jilles Tjoelker [Wed, 3 Mar 2010 22:36:28 +0000 (23:36 +0100)]
ConfItem.next is not used, remove it.
Jilles Tjoelker [Wed, 3 Mar 2010 21:58:16 +0000 (22:58 +0100)]
bandb: Group writes in transactions to reduce load on heavy kline activity.
When a ban is added or removed, open a transaction and
close it after 3 seconds; any bans in the 3 seconds
will not trigger another transaction (= 4 fsyncs with
sqlite).
The transaction is also committed if ircd closes the
connection, but not if bandb itself is terminated with
a signal.
Jilles Tjoelker [Wed, 3 Mar 2010 00:10:34 +0000 (01:10 +0100)]
Merge final 3.2.0 changes.
Jilles Tjoelker [Wed, 3 Mar 2010 00:03:41 +0000 (01:03 +0100)]
Added tag charybdis-3.2.0 for changeset
c2443ea9ff84
Jilles Tjoelker [Tue, 2 Mar 2010 23:20:34 +0000 (00:20 +0100)]
Add a hint how to import old ban .conf files into bandb.
Jilles Tjoelker [Mon, 1 Mar 2010 00:24:00 +0000 (01:24 +0100)]
Make struct operhash_entry private.
Jilles Tjoelker [Mon, 1 Mar 2010 00:23:22 +0000 (01:23 +0100)]
Track who set a dline/kline/xline/resv as in ratbox3.
Like in ratbox3, there is no way to query this information
(other than bandb's tables, but they worked before this
commit).
Jilles Tjoelker [Sun, 28 Feb 2010 15:45:55 +0000 (16:45 +0100)]
Merge bugfix that also applied to 3.2.x.
Jilles Tjoelker [Sun, 28 Feb 2010 15:45:25 +0000 (16:45 +0100)]
Fix memory leak on /rehash bans.
We do not have the 'oper' field in klines yet.
Jilles Tjoelker [Sun, 28 Feb 2010 15:27:06 +0000 (16:27 +0100)]
Generate the "Temporary K-line %d min" part from aconf->hold - aconf->created.
Jilles Tjoelker [Sat, 27 Feb 2010 23:46:56 +0000 (00:46 +0100)]
Store the creation time of klines and dlines as a time_t instead of as text.
The value 0 indicates the creation time is unknown (currently the case
for bandb).
Also store a creation time for xlines and resvs, but do not use it yet.
Jilles Tjoelker [Sat, 27 Feb 2010 22:56:56 +0000 (23:56 +0100)]
Add a missing comment for new /challenge numerics.
William Pitcock [Sat, 27 Feb 2010 21:23:22 +0000 (15:23 -0600)]
Added tag charybdis-3.2.0 for changeset
6144f52a119b
Alexander F?r?y [Sat, 27 Feb 2010 00:08:41 +0000 (01:08 +0100)]
Use RPL_QUIETLIST and RPL_ENDOFQUIETLIST instead of RPL_BANLIST and
RPL_ENDOFBANLIST for channel mode +q.
William Pitcock [Sat, 27 Feb 2010 21:26:54 +0000 (15:26 -0600)]
Update configure.
William Pitcock [Sat, 27 Feb 2010 21:26:42 +0000 (15:26 -0600)]
Charybdis 3.3.x development cycle begins.
Jilles Tjoelker [Wed, 24 Feb 2010 22:31:56 +0000 (23:31 +0100)]
help: Remove references to old ban .confs,
calling bandb "the database" instead.
Jilles Tjoelker [Wed, 24 Feb 2010 22:28:27 +0000 (23:28 +0100)]
Use FLAGS_SENTUSER when checking whether to register when ping cookie is received.
Stephen Bennett [Tue, 23 Feb 2010 22:35:58 +0000 (22:35 +0000)]
Use FLAGS_SENTUSER instead of 'user' being non-empty to decide whether to register a user on CAP END.
identd and SASL can cause source_p->user to be present without USER having been sent.
Without this change, that could cause a crash later on as localClient->fullcaps is not initialised.
Jilles Tjoelker [Mon, 22 Feb 2010 22:53:45 +0000 (23:53 +0100)]
Remove some obsolete paths from config.h.
Jilles Tjoelker [Mon, 22 Feb 2010 18:31:05 +0000 (19:31 +0100)]
Remove more old kline.conf stuff.
Make sure to recompile modules, stuff has been removed
close to the start of ConfigFileEntry.
Jilles Tjoelker [Mon, 22 Feb 2010 18:16:37 +0000 (19:16 +0100)]
gnutls: I guess a gnutls_x509_crt_deinit() is needed to avoid memory leak.
Jilles Tjoelker [Mon, 22 Feb 2010 18:09:46 +0000 (19:09 +0100)]
Remove code to write bans to csv files.
William Pitcock [Mon, 22 Feb 2010 17:13:59 +0000 (11:13 -0600)]
gnutls: Add support for certfp gathering.
Jilles Tjoelker [Sun, 21 Feb 2010 22:15:07 +0000 (23:15 +0100)]
Add spambot check changes to NEWS.
Jilles Tjoelker [Sun, 21 Feb 2010 00:45:51 +0000 (01:45 +0100)]
Do not penalize for spambot checks if creating a new channel.
Jilles Tjoelker [Sun, 21 Feb 2010 00:29:41 +0000 (01:29 +0100)]
spambot checks: Fix excessive expiry in some cases.
Jilles Tjoelker [Sun, 21 Feb 2010 00:12:04 +0000 (01:12 +0100)]
JOIN 0: Make spambot check equivalent to PART's.
Jilles Tjoelker [Sun, 21 Feb 2010 00:10:04 +0000 (01:10 +0100)]
Remove dead code: last_join_time is already updated by check_spambot_warning().
Jilles Tjoelker [Sun, 21 Feb 2010 00:07:32 +0000 (01:07 +0100)]
Do not check for spambot if the user is not allowed to join the channel.
Jilles Tjoelker [Fri, 19 Feb 2010 15:55:15 +0000 (16:55 +0100)]
Fix a memory leak with client certificates.
William Pitcock [Fri, 19 Feb 2010 00:38:26 +0000 (18:38 -0600)]
Do not try to free the alias dict if it does not exist.
William Pitcock [Fri, 19 Feb 2010 00:11:32 +0000 (18:11 -0600)]
Automated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Fri, 19 Feb 2010 00:11:23 +0000 (18:11 -0600)]
Fix libtool build issue.
Jilles Tjoelker [Thu, 18 Feb 2010 22:42:07 +0000 (23:42 +0100)]
challenge: Fix build.
William Pitcock [Thu, 18 Feb 2010 13:35:05 +0000 (07:35 -0600)]
Added tag proposed-charybdis-3.2.0 for changeset
7450d2086b3a
William Pitcock [Thu, 18 Feb 2010 13:35:01 +0000 (07:35 -0600)]
Removed tag proposed-charybdis-3.2.0
William Pitcock [Thu, 18 Feb 2010 13:34:40 +0000 (07:34 -0600)]
Documentation updates for the ip_cloaking_4.0 transition.
William Pitcock [Thu, 18 Feb 2010 13:30:26 +0000 (07:30 -0600)]
Add ip_cloaking_4.0 module, which is the same cloaking as 3.2, but moves the usermode from +h to +x,
which allows us to start transitioning this usermode change.
William Pitcock [Thu, 18 Feb 2010 05:13:42 +0000 (23:13 -0600)]
Added tag proposed-charybdis-3.2.0 for changeset
99d6cacd4454
William Pitcock [Thu, 18 Feb 2010 05:12:45 +0000 (23:12 -0600)]
Run autoreconf.
William Pitcock [Thu, 18 Feb 2010 05:12:17 +0000 (23:12 -0600)]
Set autoconf version to 3.2.0.
William Pitcock [Thu, 18 Feb 2010 05:11:33 +0000 (23:11 -0600)]
BUGS is no longer relevant, as the build system installs files in a way where this is no longer a problem.
William Pitcock [Thu, 18 Feb 2010 05:05:47 +0000 (23:05 -0600)]
Change license version in version.c.SH (GPLv1 -> GPLv2) so that it agrees with the other documentation.
William Pitcock [Thu, 18 Feb 2010 05:01:58 +0000 (23:01 -0600)]
s/o:lines/operator blocks/
William Pitcock [Thu, 18 Feb 2010 05:01:25 +0000 (23:01 -0600)]
Add certfp check to challenge too.
William Pitcock [Wed, 17 Feb 2010 12:51:41 +0000 (06:51 -0600)]
Clarify ERR_NOOPERHOST and convert it to use sendto_one_numeric().
William Pitcock [Wed, 17 Feb 2010 12:44:42 +0000 (06:44 -0600)]
hurt: unbreak compile
William Pitcock [Wed, 17 Feb 2010 12:41:41 +0000 (06:41 -0600)]
Add support for client certificate fingerprints in o:lines.
Jilles Tjoelker [Tue, 16 Feb 2010 23:38:08 +0000 (00:38 +0100)]
Update target change documentation.
Jilles Tjoelker [Tue, 16 Feb 2010 23:24:12 +0000 (00:24 +0100)]
Update NEWS.
Jilles Tjoelker [Mon, 15 Feb 2010 22:07:14 +0000 (23:07 +0100)]
Subject /invite to umodes +g and +R.
The behaviour is the same as /msg except that where
/msg would send RPL_UMODEGMSG to the user, the /invite
is instead let through. This counts as a notification
for caller_id_wait like RPL_UMODEGMSG.
Checks are on the target user's server, which means an
error message will appear after RPL_INVITING.
This must be because the accept list is not globally
known.
Jilles Tjoelker [Mon, 15 Feb 2010 21:18:00 +0000 (22:18 +0100)]
Add missing return value.
Jilles Tjoelker [Mon, 15 Feb 2010 21:08:55 +0000 (22:08 +0100)]
Subject /invite to target change.
Similar to /msg, inviting a user that is not in a channel
you have op or voice in requires a free target; opers always
have a free target.
Being invited adds the source as a reply target.
Jilles Tjoelker [Mon, 15 Feb 2010 20:58:34 +0000 (21:58 +0100)]
Move target change code to src/tgchange.c,
so we can use it for /invite as well.
Jilles Tjoelker [Mon, 15 Feb 2010 00:07:07 +0000 (01:07 +0100)]
target change: Allow free replies.
When a user receives a private message, notice or RPL_UMODEGMSG,
add the source to a special set of 5 target slots.
These slots are checked in the normal way when sending messages,
allowing a reply without using up a free target.
This feature will not be very useful if a user is being messaged
by many different users; to help this, messages blocked entirely
by +g or +R do not affect the targets. CTCP replies also remain
free in terms of targets.
Jilles Tjoelker [Sun, 14 Feb 2010 23:31:17 +0000 (00:31 +0100)]
target change: Overwrite the least recently used target with a new one.
Jilles Tjoelker [Sat, 13 Feb 2010 14:18:17 +0000 (15:18 +0100)]
Make the number of targets tracked for target change a #define.
JD Horelick [Mon, 8 Feb 2010 23:04:54 +0000 (18:04 -0500)]
English fix to fix the fix i made about 80 minutes ago.
I suck at a/an cometimes. Also, fix.
JD Horelick [Mon, 8 Feb 2010 21:28:08 +0000 (16:28 -0500)]
One or 2 English language cleanups. Less than I thought there were.
Jilles Tjoelker [Sun, 7 Feb 2010 19:38:37 +0000 (20:38 +0100)]
Add new function rb_get_ssl_certfp() to export-syms.txt.
Jilles Tjoelker [Sun, 7 Feb 2010 16:57:36 +0000 (17:57 +0100)]
testline/testgecos: Send "not an oper" message if appropriate.
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.