]> jfr.im git - irc/freenode/solanum.git/log
irc/freenode/solanum.git
3 years agoregonlymsg: use invite instead of can_invite hook
Ariadne Conill [Fri, 26 Jun 2020 20:22:31 +0000 (14:22 -0600)] 
regonlymsg: use invite instead of can_invite hook

3 years agoinvite: revert the ERR_CHANOPRIVSNEEDED change too
Ariadne Conill [Fri, 26 Jun 2020 20:21:29 +0000 (14:21 -0600)] 
invite: revert the ERR_CHANOPRIVSNEEDED change too

3 years agoRevert "invite: rework the way can_invite hook is called"
Ariadne Conill [Fri, 26 Jun 2020 20:20:52 +0000 (14:20 -0600)] 
Revert "invite: rework the way can_invite hook is called"

This reverts commit ed06fed70a67b0cdd4e53aad575fca7b9d046061.

3 years agoinvite: remove redundant parenthesis
Ariadne Conill [Fri, 26 Jun 2020 19:58:00 +0000 (13:58 -0600)] 
invite: remove redundant parenthesis

3 years agoinvite: rework the way can_invite hook is called
Ariadne Conill [Fri, 26 Jun 2020 19:55:12 +0000 (19:55 +0000)] 
invite: rework the way can_invite hook is called

3 years agoregonlymsg: allow messages through if target is not a local client
Ariadne Conill [Fri, 26 Jun 2020 19:46:57 +0000 (19:46 +0000)] 
regonlymsg: allow messages through if target is not a local client

3 years agoregonlymsg: do not clobber the work of other modules
Ariadne Conill [Fri, 26 Jun 2020 19:03:25 +0000 (19:03 +0000)] 
regonlymsg: do not clobber the work of other modules

3 years agoregonlymsg: fix allow_message() return values
Ariadne Conill [Fri, 26 Jun 2020 18:03:43 +0000 (12:03 -0600)] 
regonlymsg: fix allow_message() return values

3 years agomodularize usermode +R (registered users only)
Ariadne Conill [Fri, 26 Jun 2020 17:55:30 +0000 (11:55 -0600)] 
modularize usermode +R (registered users only)

3 years agomessage: remove hardcoded +R logic
Ariadne Conill [Fri, 26 Jun 2020 17:55:07 +0000 (11:55 -0600)] 
message: remove hardcoded +R logic

3 years agoinvite: remove hardcoded UMODE_REGONLYMSG code
Ariadne Conill [Fri, 26 Jun 2020 17:41:05 +0000 (11:41 -0600)] 
invite: remove hardcoded UMODE_REGONLYMSG code

3 years agoMerge pull request #333 from edk0/privs-multiline
Aaron Jones [Fri, 26 Jun 2020 16:55:56 +0000 (16:55 +0000)] 
Merge pull request #333 from edk0/privs-multiline

m_privs: break long responses into multiple lines

3 years agoMerge pull request #340 from ophion-project/upstream/hook-channel-lowerts
Aaron Jones [Fri, 26 Jun 2020 16:51:52 +0000 (16:51 +0000)] 
Merge pull request #340 from ophion-project/upstream/hook-channel-lowerts

join: add channel_lowerts hook

3 years agojoin: add channel_lowerts hook
Ariadne Conill [Fri, 26 Jun 2020 16:21:19 +0000 (16:21 +0000)] 
join: add channel_lowerts hook

3 years agoMerge pull request #334 from edk0/massnotice
Aaron Jones [Thu, 25 Jun 2020 17:42:43 +0000 (17:42 +0000)] 
Merge pull request #334 from edk0/massnotice

Remove the massnotice wildcard restriction

3 years agoMerge pull request #322 from edk0/invite-umode-g
Aaron Jones [Thu, 25 Jun 2020 17:37:04 +0000 (17:37 +0000)] 
Merge pull request #322 from edk0/invite-umode-g

m_invite: Don't punch through +g

3 years agoMerge pull request #328 from edk0/capability-put-ownerdata
Aaron Jones [Thu, 25 Jun 2020 17:35:44 +0000 (17:35 +0000)] 
Merge pull request #328 from edk0/capability-put-ownerdata

capability: accept new ownerdata for existing caps

3 years agoMerge pull request #329 from edk0/reload-by-path
Aaron Jones [Thu, 25 Jun 2020 17:32:58 +0000 (17:32 +0000)] 
Merge pull request #329 from edk0/reload-by-path

Reload modules by path

3 years agoMerge pull request #338 from edk0/kline-zero
Aaron Jones [Thu, 25 Jun 2020 11:49:40 +0000 (11:49 +0000)] 
Merge pull request #338 from edk0/kline-zero

m_kline: insert a safety zero early

3 years agom_kline: insert a safety zero early
Ed Kellett [Thu, 25 Jun 2020 11:32:01 +0000 (12:32 +0100)] 
m_kline: insert a safety zero early

3 years agom_invite: Don't punch through +g
Ed Kellett [Sat, 2 May 2020 01:26:39 +0000 (02:26 +0100)] 
m_invite: Don't punch through +g

3 years agoMerge pull request #335 from edk0/post-registration-delay
Aaron Jones [Sun, 21 Jun 2020 12:56:56 +0000 (12:56 +0000)] 
Merge pull request #335 from edk0/post-registration-delay

Import post_registration_delay from ircd-seven

4 years agoMerge pull request #330 from edk0/caps-before-init
Aaron Jones [Wed, 10 Jun 2020 15:03:57 +0000 (15:03 +0000)] 
Merge pull request #330 from edk0/caps-before-init

modules: create caps before mapi_register()

4 years agoMerge pull request #327 from edk0/filter-quit
Aaron Jones [Wed, 10 Jun 2020 14:55:02 +0000 (14:55 +0000)] 
Merge pull request #327 from edk0/filter-quit

filter quit messages

4 years agoMerge pull request #321 from edk0/hook-priorities
Aaron Jones [Wed, 10 Jun 2020 14:49:59 +0000 (14:49 +0000)] 
Merge pull request #321 from edk0/hook-priorities

Simple hook priority system

4 years agoMerge pull request #336 from edk0/range-leak
Aaron Jones [Wed, 10 Jun 2020 14:38:53 +0000 (14:38 +0000)] 
Merge pull request #336 from edk0/range-leak

ircd_parser: free the ends of ranges after use

4 years agoircd_parser: free the ends of ranges after use
Ed Kellett [Sun, 7 Jun 2020 22:31:40 +0000 (23:31 +0100)] 
ircd_parser: free the ends of ranges after use

4 years agoRename connect_delay to post_registration_delay. This matches the ircd-ratbox feature...
Stephen Bennett [Wed, 13 Jan 2010 23:54:49 +0000 (23:54 +0000)] 
Rename connect_delay to post_registration_delay. This matches the ircd-ratbox feature, and better describes what it actually is. Also make sure to set localClient->firsttime on registration, so that the delay counts from the right time.

4 years agoAdd connect_delay to example and reference configs
Stephen Bennett [Wed, 13 Jan 2010 13:52:28 +0000 (13:52 +0000)] 
Add connect_delay to example and reference configs

4 years agoInitial attempt at the conndelay hack
Stephen Bennett [Tue, 12 Jan 2010 21:32:18 +0000 (21:32 +0000)] 
Initial attempt at the conndelay hack

4 years agoRemove the massnotice wildcard restriction
Ed Kellett [Sun, 7 Jun 2020 14:06:24 +0000 (15:06 +0100)] 
Remove the massnotice wildcard restriction

4 years agom_privs: break long responses into multiple lines
Ed Kellett [Sat, 6 Jun 2020 23:19:35 +0000 (00:19 +0100)] 
m_privs: break long responses into multiple lines

4 years agomodules: create caps before mapi_register()
Ed Kellett [Tue, 2 Jun 2020 15:32:28 +0000 (16:32 +0100)] 
modules: create caps before mapi_register()

4 years agoReload modules by path
Ed Kellett [Tue, 2 Jun 2020 15:17:26 +0000 (16:17 +0100)] 
Reload modules by path

4 years agocapability: accept new ownerdata for existing caps
Ed Kellett [Tue, 2 Jun 2020 15:08:40 +0000 (16:08 +0100)] 
capability: accept new ownerdata for existing caps

4 years agoMerge pull request #326 from edk0/filter-part
Aaron Jones [Sun, 24 May 2020 23:08:02 +0000 (23:08 +0000)] 
Merge pull request #326 from edk0/filter-part

Handle PARTs properly in extensions/filter

4 years agoextensions/filter: filter quit messages
Ed Kellett [Sat, 23 May 2020 18:10:31 +0000 (19:10 +0100)] 
extensions/filter: filter quit messages

4 years agoAdd client_quit hook
Ed Kellett [Sat, 23 May 2020 18:10:07 +0000 (19:10 +0100)] 
Add client_quit hook

4 years agoMerge pull request #324 from mas90/patch-1
Aaron Jones [Mon, 11 May 2020 07:32:41 +0000 (07:32 +0000)] 
Merge pull request #324 from mas90/patch-1

Skip any unhandled DNS record type

4 years agoSkip any unhandled DNS record type
Malcolm Scott [Sun, 10 May 2020 20:00:43 +0000 (21:00 +0100)] 
Skip any unhandled DNS record type

Currently the DNS resolver handles CNAME by skipping that record in the answer and looking for the subsequent A/AAAA/PTR record.  There are other record types which could be handled in the same way, e.g. DNAME, but their presence currently causes the answer parsing to be abandoned.  A better approach would be to skip *any* other record and just use the first A, AAAA or PTR in the answer, regardless of what comes before it.

4 years agofilter: fix part handling
Ed Kellett [Sat, 2 May 2020 01:52:21 +0000 (02:52 +0100)] 
filter: fix part handling

previously we would have formatted a null pointer into %s for the
command, which is theoretically bad but handled by glibc

4 years agohook: Use old insertion order for equal priority
Ed Kellett [Mon, 27 Apr 2020 15:36:40 +0000 (16:36 +0100)] 
hook: Use old insertion order for equal priority

4 years agoAdd priorities to some hooks
Ed Kellett [Sun, 26 Apr 2020 23:42:53 +0000 (00:42 +0100)] 
Add priorities to some hooks

4 years agoImplement hook priorities
Ed Kellett [Sun, 26 Apr 2020 23:14:56 +0000 (00:14 +0100)] 
Implement hook priorities

4 years agoMerge pull request #319 from edk0/invite-notify
Aaron Jones [Fri, 1 May 2020 16:22:44 +0000 (16:22 +0000)] 
Merge pull request #319 from edk0/invite-notify

Fix invite-notify and move it to an extension

4 years agoDocument invite hooks
Ed Kellett [Wed, 29 Apr 2020 10:01:39 +0000 (11:01 +0100)] 
Document invite hooks

4 years agoUse a different cap for send tests
Ed Kellett [Sun, 26 Apr 2020 14:46:32 +0000 (15:46 +0100)] 
Use a different cap for send tests

4 years agoFix invite-notify and move it to an extension
Ed Kellett [Sat, 1 Feb 2020 02:10:33 +0000 (02:10 +0000)] 
Fix invite-notify and move it to an extension

The existing approach to invite-notify is deeply flawed--it currently
notifies only the target user's server, and that can't be fixed without
sending notifies for invites that end up not happening.

I'm resolving this by broadcasting a second message, INVITED, from the
target user's server. I'm also pulling it out into an extension while
I'm at it--invite notifies reveal new information, so I don't think
they should be mandatory.

4 years agom_invite: Add hooks
Ed Kellett [Sat, 1 Feb 2020 00:08:23 +0000 (00:08 +0000)] 
m_invite: Add hooks

can_invite is called on the source server, can override channel access
invite is called on the target

4 years agoMerge pull request #320 from edk0/runtests
Aaron Jones [Wed, 29 Apr 2020 10:00:39 +0000 (10:00 +0000)] 
Merge pull request #320 from edk0/runtests

Run tests with ASan leak detection off

4 years agoRun tests with ASan leak detection off
Ed Kellett [Sun, 26 Apr 2020 15:05:05 +0000 (16:05 +0100)] 
Run tests with ASan leak detection off

The test environment is sufficiently weird that I don't think fixing
these would be a good use of anyone's time

4 years agoMerge pull request #316 from edk0/kline-spoof-flag
Aaron Jones [Fri, 24 Apr 2020 09:13:19 +0000 (09:13 +0000)] 
Merge pull request #316 from edk0/kline-spoof-flag

Add an iline flag to match klines by spoof only

4 years agoDocument kline_spoof_ip
Ed Kellett [Sun, 19 Apr 2020 23:45:22 +0000 (00:45 +0100)] 
Document kline_spoof_ip

4 years agoHandle kline_spoof_ip in check_one_kline
Ed Kellett [Tue, 14 Apr 2020 22:51:23 +0000 (23:51 +0100)] 
Handle kline_spoof_ip in check_one_kline

4 years agoAdd an iline flag to match klines by spoof only
Ed Kellett [Mon, 13 Apr 2020 22:51:52 +0000 (23:51 +0100)] 
Add an iline flag to match klines by spoof only

4 years agoMerge pull request #317 from edk0/leak
Aaron Jones [Sun, 19 Apr 2020 14:25:14 +0000 (14:25 +0000)] 
Merge pull request #317 from edk0/leak

librb/event: Don't leak event names on completion

4 years agolibrb/event: Don't leak event names on completion
Ed Kellett [Sun, 19 Apr 2020 13:22:18 +0000 (14:22 +0100)] 
librb/event: Don't leak event names on completion

4 years agoMerge pull request #313 from edk0/spoof-chban
Aaron Jones [Sun, 19 Apr 2020 12:11:19 +0000 (12:11 +0000)] 
Merge pull request #313 from edk0/spoof-chban

Don't match iline-spoofed IPs for channel bans

4 years agoMerge pull request #314 from jesopo/message-handler-comment
Aaron Jones [Sun, 19 Apr 2020 12:06:16 +0000 (12:06 +0000)] 
Merge pull request #314 from jesopo/message-handler-comment

rectify comment for Message handler indexes

4 years agoremove LAST in comment too; it's a bit pointless
jesopo [Sun, 19 Apr 2020 12:05:01 +0000 (13:05 +0100)] 
remove LAST in comment too; it's a bit pointless

4 years agoMerge pull request #315 from edk0/check-kline
Aaron Jones [Sun, 19 Apr 2020 11:57:08 +0000 (11:57 +0000)] 
Merge pull request #315 from edk0/check-kline

Make K-line checking more consistent

4 years agoAdd ipv4-in-ipv6 logic to check_one_kline
Ed Kellett [Sun, 19 Apr 2020 01:16:17 +0000 (02:16 +0100)] 
Add ipv4-in-ipv6 logic to check_one_kline

4 years agoAlign check_one_kline better with find_kline
Ed Kellett [Sat, 18 Apr 2020 23:53:10 +0000 (00:53 +0100)] 
Align check_one_kline better with find_kline

4 years agoMove ipv4-in-ipv6 handling to find_conf_by_address
Ed Kellett [Sat, 18 Apr 2020 15:57:22 +0000 (16:57 +0100)] 
Move ipv4-in-ipv6 handling to find_conf_by_address

This removes some inconsistencies: first of all it applies to both
CONF_KILL searches by IP in find_address_conf, and secondly it applies
to find_kline, which would have been an edge case before.

4 years agoRefactor check_one_kline a tiny bit
Ed Kellett [Wed, 15 Apr 2020 22:51:39 +0000 (23:51 +0100)] 
Refactor check_one_kline a tiny bit

4 years agorectify comment for Message handler indexes
jesopo [Sat, 18 Apr 2020 23:00:20 +0000 (00:00 +0100)] 
rectify comment for Message handler indexes

4 years agoDon't match iline-spoofed IPs for channel bans
Ed Kellett [Sun, 12 Apr 2020 01:09:12 +0000 (02:09 +0100)] 
Don't match iline-spoofed IPs for channel bans

4 years agoCentralise banmask matching logic
Ed Kellett [Sun, 12 Apr 2020 01:07:17 +0000 (02:07 +0100)] 
Centralise banmask matching logic

4 years agoMerge pull request #311 from qaisjp/patch-2
Aaron Jones [Sun, 15 Mar 2020 22:14:26 +0000 (22:14 +0000)] 
Merge pull request #311 from qaisjp/patch-2

readme: fix macOS instructions

4 years agoreadme: fix macOS instructions
Qais Patankar [Sun, 15 Mar 2020 22:06:42 +0000 (22:06 +0000)] 
readme: fix macOS instructions

4 years agoextensions/extb_ssl.c: make certfp parameter case-insensitive
Aaron Jones [Tue, 28 Jan 2020 20:46:14 +0000 (20:46 +0000)] 
extensions/extb_ssl.c: make certfp parameter case-insensitive

I had the idea that maybe these should be case-sensitive because some
encodings (like Base-64) are. But it turns out it's better to
prioritise not breaking existing configurations / channel mode lists,
and just revisit this in future maybe.

[ci skip]

4 years agoextensions/extb_ssl.c: port e0f1c3b5bc6c55b88938 & 5572f43834b93b898ea0
Aaron Jones [Tue, 28 Jan 2020 20:37:39 +0000 (20:37 +0000)] 
extensions/extb_ssl.c: port e0f1c3b5bc6c55b88938 & 5572f43834b93b898ea0

Reported-by: Opal Hart <redacted>
4 years agotests: Check sendto_wallops_flags works with format strings
Simon Arlott [Sat, 11 Jan 2020 16:25:18 +0000 (16:25 +0000)] 
tests: Check sendto_wallops_flags works with format strings

4 years agoMerge pull request #308 from edk0/with-asan
Aaron Jones [Fri, 10 Jan 2020 15:36:06 +0000 (15:36 +0000)] 
Merge pull request #308 from edk0/with-asan

Add --with-asan to build with asan

4 years agoLink asan in a clang-friendly way
Ed Kellett [Fri, 10 Jan 2020 15:32:35 +0000 (15:32 +0000)] 
Link asan in a clang-friendly way

4 years agoAdd --with-asan to build with asan
Ed Kellett [Mon, 6 Jan 2020 23:46:44 +0000 (23:46 +0000)] 
Add --with-asan to build with asan

4 years agoMerge pull request #304 from edk0/reject-expired
Aaron Jones [Fri, 3 Jan 2020 17:33:10 +0000 (17:33 +0000)] 
Merge pull request #304 from edk0/reject-expired

reject: Don't reject for expired K-lines

4 years agoreject: reorder to avoid leaks
Ed Kellett [Fri, 3 Jan 2020 17:07:25 +0000 (17:07 +0000)] 
reject: reorder to avoid leaks

4 years agoreject: Don't reject for expired K-lines
Ed Kellett [Fri, 3 Jan 2020 16:24:36 +0000 (16:24 +0000)] 
reject: Don't reject for expired K-lines

4 years agoMerge pull request #302 from edk0/sasl-usercloak
Aaron Jones [Thu, 2 Jan 2020 20:31:06 +0000 (20:31 +0000)] 
Merge pull request #302 from edk0/sasl-usercloak

Import extensions/sasl_usercloak from ircd-seven

4 years agoMerge pull request #297 from bmwiedemann/date
Aaron Jones [Thu, 2 Jan 2020 20:29:13 +0000 (20:29 +0000)] 
Merge pull request #297 from bmwiedemann/date

Set EXTERNAL_BUILD_TIMESTAMP from SOURCE_DATE_EPOCH

4 years agoMerge pull request #303 from edk0/modreload-uaf
Aaron Jones [Thu, 2 Jan 2020 17:24:44 +0000 (17:24 +0000)] 
Merge pull request #303 from edk0/modreload-uaf

modules: fix use-after-free when reloading

4 years agoMerge pull request #301 from edk0/reject-free-fix-fix
Aaron Jones [Thu, 2 Jan 2020 17:24:25 +0000 (17:24 +0000)] 
Merge pull request #301 from edk0/reject-free-fix-fix

Remove from the list of propagated bans on expiry

4 years agomodules: fix use-after-free when reloading
Ed Kellett [Thu, 2 Jan 2020 16:39:35 +0000 (16:39 +0000)] 
modules: fix use-after-free when reloading

4 years agosasl_usercloak: fix typo in format string
Ed Kellett [Thu, 2 Jan 2020 16:29:23 +0000 (16:29 +0000)] 
sasl_usercloak: fix typo in format string

thanks @ProgVal

4 years agosasl_usercloak: make the magic string more specific
Ed Kellett [Thu, 2 Jan 2020 15:49:15 +0000 (15:49 +0000)] 
sasl_usercloak: make the magic string more specific

Require '/account' at the end of the spoof, rather than
'account' anywhere.

4 years agosasl_usercloak: modernize
Ed Kellett [Thu, 2 Jan 2020 03:35:37 +0000 (03:35 +0000)] 
sasl_usercloak: modernize

4 years agoRemove duplicated notify_banned_client
Ed Kellett [Sat, 25 Nov 2017 23:54:43 +0000 (23:54 +0000)] 
Remove duplicated notify_banned_client

4 years agosasl_usercloak: check K-lines after host change
Ed Kellett [Sat, 25 Nov 2017 22:53:45 +0000 (22:53 +0000)] 
sasl_usercloak: check K-lines after host change

4 years agoRevert "recheck users after applying SASL account cloaks"
Ed Kellett [Wed, 4 Jan 2017 18:36:07 +0000 (18:36 +0000)] 
Revert "recheck users after applying SASL account cloaks"

This reverts commit 4d401d3c60019cf96b07a012106cab9678b7a79d.

4 years agorecheck users after applying SASL account cloaks
Ed Kellett [Tue, 27 Dec 2016 23:06:20 +0000 (23:06 +0000)] 
recheck users after applying SASL account cloaks

(so K-lines on them will take effect properly)

4 years agoMake sasl_usercloak.so update the original host, as well as the visible host if it...
Stephen Bennett [Tue, 2 Feb 2010 21:31:50 +0000 (21:31 +0000)] 
Make sasl_usercloak.so update the original host, as well as the visible host if it hasn't already changed. Allows for the sasl spoof to be used to override services ones in some circumstances.

4 years agoBe sure to zero out host buffer before using it
Stephen Bennett [Sat, 30 Jan 2010 19:57:35 +0000 (19:57 +0000)] 
Be sure to zero out host buffer before using it

4 years agoAdd sasl_usercloak module, to allow injecting SASL account name into a user's host...
Stephen Bennett [Fri, 29 Jan 2010 23:29:00 +0000 (23:29 +0000)] 
Add sasl_usercloak module, to allow injecting SASL account name into a user's host on connection

4 years agoRemove from the list of propagated bans on expiry
Ed Kellett [Wed, 1 Jan 2020 23:58:00 +0000 (23:58 +0000)] 
Remove from the list of propagated bans on expiry

Fixes a use-after-free introduced in 548e31d3b, which fixed a related
use-after-free introduced in a9536f755.

4 years agoMerge pull request #300 from edk0/reject-free-fix
Aaron Jones [Wed, 1 Jan 2020 08:57:52 +0000 (08:57 +0000)] 
Merge pull request #300 from edk0/reject-free-fix

Fix a use-after-free introduced in #298

4 years agoFix a place aconfs could be freed while referenced
Ed Kellett [Wed, 1 Jan 2020 08:48:50 +0000 (08:48 +0000)] 
Fix a place aconfs could be freed while referenced

(not a bug until a9536f755 since bans were not referenced before)

4 years agoMerge pull request #299 from edk0/tkline-reason
Aaron Jones [Tue, 31 Dec 2019 08:00:24 +0000 (08:00 +0000)] 
Merge pull request #299 from edk0/tkline-reason

Add config option to hide durations of temporary K/D-lines

4 years agoMerge pull request #298 from edk0/rejectcache
Aaron Jones [Tue, 31 Dec 2019 07:59:56 +0000 (07:59 +0000)] 
Merge pull request #298 from edk0/rejectcache

Remember and send reasons for rejectcache rejections

4 years agoAdd hide_tkdline_duration to documentation .confs
Ed Kellett [Tue, 31 Dec 2019 01:50:24 +0000 (01:50 +0000)] 
Add hide_tkdline_duration to documentation .confs