]> jfr.im git - solanum.git/log
solanum.git
5 years agoauthd: fix "is provider done" logic in blacklist/opm providers
Simon Arlott [Sun, 12 Aug 2018 10:05:59 +0000 (11:05 +0100)] 
authd: fix "is provider done" logic in blacklist/opm providers

This fixes #262.

5 years agoMerge pull request #260 from FauxFaux/yesno-1
Simon Arlott [Sun, 12 Aug 2018 09:17:12 +0000 (10:17 +0100)] 
Merge pull request #260 from FauxFaux/yesno-1

YESNO options are of type bool, not int

5 years agotravis: don't build docs on osx
Simon Arlott [Sun, 12 Aug 2018 09:01:56 +0000 (10:01 +0100)] 
travis: don't build docs on osx

5 years agodoc: build with travis
Simon Arlott [Sun, 12 Aug 2018 08:40:40 +0000 (09:40 +0100)] 
doc: build with travis

5 years agodoc: there is no _static directory
Simon Arlott [Sun, 12 Aug 2018 08:37:50 +0000 (09:37 +0100)] 
doc: there is no _static directory

5 years agoMerge pull request #263 from anarcat/extban-doc
Simon Arlott [Sun, 12 Aug 2018 08:25:56 +0000 (09:25 +0100)] 
Merge pull request #263 from anarcat/extban-doc

point users towards HELP EXTBAN for inline help

5 years agopoint to the CMODE help page for more modes
Antoine Beaupré [Tue, 29 Aug 2017 13:10:37 +0000 (09:10 -0400)] 
point to the CMODE help page for more modes

5 years agofix more headings
Antoine Beaupré [Sat, 25 Mar 2017 16:35:29 +0000 (12:35 -0400)] 
fix more headings

5 years agofix two headings to be toplevel
Antoine Beaupré [Sat, 25 Mar 2017 16:33:06 +0000 (12:33 -0400)] 
fix two headings to be toplevel

5 years agodo not hardcode theme
Antoine Beaupré [Sat, 25 Mar 2017 16:29:27 +0000 (12:29 -0400)] 
do not hardcode theme

5 years agoconfig.rst review
Antoine Beaupré [Sat, 25 Mar 2017 16:22:36 +0000 (12:22 -0400)] 
config.rst review

5 years agoreview commands.rst style
Antoine Beaupré [Sat, 25 Mar 2017 16:07:37 +0000 (12:07 -0400)] 
review commands.rst style

5 years agofix style in ucommands.rst
Antoine Beaupré [Sat, 25 Mar 2017 15:49:30 +0000 (11:49 -0400)] 
fix style in ucommands.rst

5 years agofix syntax warning
Antoine Beaupré [Sat, 25 Mar 2017 15:47:58 +0000 (11:47 -0400)] 
fix syntax warning

5 years agofix ucommands.rst style
Antoine Beaupré [Sat, 25 Mar 2017 15:47:23 +0000 (11:47 -0400)] 
fix ucommands.rst style

5 years agoreview umodes.rst
Antoine Beaupré [Sat, 25 Mar 2017 15:45:22 +0000 (11:45 -0400)] 
review umodes.rst

5 years agoreview oprivs.rst style
Antoine Beaupré [Sat, 25 Mar 2017 15:44:51 +0000 (11:44 -0400)] 
review oprivs.rst style

5 years agoreview cmodes.rst style
Antoine Beaupré [Sat, 25 Mar 2017 15:42:51 +0000 (11:42 -0400)] 
review cmodes.rst style

5 years agosome styling
Antoine Beaupré [Sat, 25 Mar 2017 15:33:06 +0000 (11:33 -0400)] 
some styling

turn all +flags into preformatted flags, fix admonitions

5 years agoignore build results
Antoine Beaupré [Sat, 25 Mar 2017 15:15:08 +0000 (11:15 -0400)] 
ignore build results

5 years agofix duplicate headings, remove duplicate ToC
Antoine Beaupré [Sat, 25 Mar 2017 15:15:03 +0000 (11:15 -0400)] 
fix duplicate headings, remove duplicate ToC

5 years agomerge two index pages
Antoine Beaupré [Sat, 25 Mar 2017 15:09:44 +0000 (11:09 -0400)] 
merge two index pages

5 years agoconvert SGML guide to RST
Antoine Beaupré [Sat, 25 Mar 2017 14:42:32 +0000 (10:42 -0400)] 
convert SGML guide to RST

the rationale behind switching away from SGML/Docbook is the following:

 * SGML is hard to edit for humans
 * the output is not much prettier
 * the toolchain is not well supported and missing from the build
 * the build is not hooked into anywhere, no automation

the reason why RST was chosen:

 * it allows for a strong structure like Docbook
 * the theme from Read The Docs is pretty
 * it also supports mobile devices
 * sphinx can easily output to PDF and ePUB formats
 * RST is plaintext that can be easily edited and diff'd
 * RST can be automatically built by ReadTheDocs and the toolchain is
   readily available
 * the output is also parsed by Github so documentation can be read
   straight from GH

the reason why Markdown was not chosen:

 * the current strong structure would be hard to replicate
 * markdown is not standardized and output varies according to the
   implementation

the docs were converted with Pandoc, using the following commands:

    mkdir oper-guide
    for source in sgml/oper-guide/*.sgml; do
        pandoc --toc -s -f docbook -t rst $source -o oper-guide/$(basename $source .sgml).rst
    done
    cd oper-guide
    sphinx-quickstart
    git add *.rst make.bat conf.py
    git add -f Makefile
    git rm -r ../sgml

[merged from d4214e9445d9f9d0f0ede3e09a9f81deee9: doc/sgml/oper-guide/config.sgml]

6 years agomodules/m_sasl.c: prevent abort_sasl() sending 906 twice
Aaron Jones [Fri, 6 Apr 2018 20:06:43 +0000 (20:06 +0000)] 
modules/m_sasl.c: prevent abort_sasl() sending 906 twice

6 years agomodules/m_sasl.c: command functions are void on this branch
Aaron Jones [Fri, 6 Apr 2018 19:58:23 +0000 (19:58 +0000)] 
modules/m_sasl.c: command functions are void on this branch

6 years agomodules/m_sasl.c: abort session if we receive '*' as data
Aaron Jones [Fri, 6 Apr 2018 19:45:50 +0000 (19:45 +0000)] 
modules/m_sasl.c: abort session if we receive '*' as data

Otherwise we'd send the * on to services as actual data, which is likely
to fail to decode it (it's not valid Base-64) and reply with an SASL ...
D F which will result in us sending a 904 numeric instead of a 906.

cf. https://github.com/ircv3/ircv3-specifications/pull/298#issuecomment-271336287

Reported-By: James Wheare
6 years agoYESNO options are of type bool, not int
Chris West (Faux) [Fri, 23 Mar 2018 16:46:38 +0000 (16:46 +0000)] 
YESNO options are of type bool, not int

6 years agogcc7 fixes: NICKLEN -> NAMELEN
Simon Arlott [Fri, 19 Jan 2018 23:24:55 +0000 (23:24 +0000)] 
gcc7 fixes: NICKLEN -> NAMELEN

Use NAMELEN instead of NICKLEN when accessing Client->name because it
could in theory be a HOSTLEN length string.

6 years agogcc7 fixes: make fallthrough explicit
Simon Arlott [Fri, 19 Jan 2018 23:17:57 +0000 (23:17 +0000)] 
gcc7 fixes: make fallthrough explicit

6 years agoset version back to -dev
Simon Arlott [Thu, 18 Jan 2018 21:45:32 +0000 (21:45 +0000)] 
set version back to -dev

6 years agocharybdis 4.1
Simon Arlott [Thu, 18 Jan 2018 21:38:16 +0000 (21:38 +0000)] 
charybdis 4.1

6 years agoircd: use correct buffer sizes
Simon Arlott [Thu, 18 Jan 2018 21:33:26 +0000 (21:33 +0000)] 
ircd: use correct buffer sizes

This fixes an issue with truncated SJOINs.

6 years agolibratbox/src/mbedtls.c: check public/private keys match
Aaron Jones [Sat, 6 Jan 2018 15:59:04 +0000 (15:59 +0000)] 
libratbox/src/mbedtls.c: check public/private keys match

6 years agodoc/reference.conf: clarify that server link fingerprints aren't optional
Aaron Jones [Sat, 4 Nov 2017 07:40:44 +0000 (07:40 +0000)] 
doc/reference.conf: clarify that server link fingerprints aren't optional

[ci skip]

6 years agohelp/Makefile.am: silence construction of indexes, make build depend on index
Aaron Jones [Mon, 30 Oct 2017 15:45:23 +0000 (15:45 +0000)] 
help/Makefile.am: silence construction of indexes, make build depend on index

6 years agocharybdis 4.1-rc1
Simon Arlott [Sun, 20 Aug 2017 11:53:44 +0000 (12:53 +0100)] 
charybdis 4.1-rc1

6 years agoAdd workaround for Linux SCTP_I_WANT_MAPPED_V4_ADDR bug on older kernels
Simon Arlott [Wed, 23 Aug 2017 23:21:02 +0000 (00:21 +0100)] 
Add workaround for Linux SCTP_I_WANT_MAPPED_V4_ADDR bug on older kernels

6 years agoAdd outgoing SCTP connect support
Simon Arlott [Tue, 22 Aug 2017 19:59:53 +0000 (20:59 +0100)] 
Add outgoing SCTP connect support

6 years agoAdd basic SCTP listener support that binds to multiple addresses
Simon Arlott [Sat, 19 Aug 2017 14:11:49 +0000 (15:11 +0100)] 
Add basic SCTP listener support that binds to multiple addresses

This only supports two addresses as the intended use is 1 IPv4 and 1 IPv6
address on a single-homed host, and the only supported configuration of
outgoing connections to other servers is to bind a single IPv4 or IPv6
address.

6 years agorb_connect: use SO_ERROR
Simon Arlott [Wed, 23 Aug 2017 21:15:05 +0000 (22:15 +0100)] 
rb_connect: use SO_ERROR

6 years agorb_inet_pton_sock: initialise sockaddr to zero
Simon Arlott [Wed, 23 Aug 2017 20:14:29 +0000 (21:14 +0100)] 
rb_inet_pton_sock: initialise sockaddr to zero

6 years agoexit_unknown_client: don't delete servers from the client hash
Simon Arlott [Thu, 24 Aug 2017 19:07:31 +0000 (20:07 +0100)] 
exit_unknown_client: don't delete servers from the client hash

Outgoing servers are not added to the client hash until they reach
IsServer() status, so if they're unknown when they exit then don't
attempt to delete them.

6 years agotests: add serv_connect1 (exit_unknown_client)
Simon Arlott [Thu, 24 Aug 2017 19:03:51 +0000 (20:03 +0100)] 
tests: add serv_connect1 (exit_unknown_client)

Test serv_connect followed by exit_unknown_client.

An outgoing connection should not delete an incoming connection that
occurs during the connection attempt.

6 years agos_serv: connect using both IPv4 and IPv6 if unspecified
Simon Arlott [Tue, 22 Aug 2017 20:55:03 +0000 (21:55 +0100)] 
s_serv: connect using both IPv4 and IPv6 if unspecified

6 years agoremove RB_IPV6
Simon Arlott [Fri, 18 Aug 2017 12:03:59 +0000 (13:03 +0100)] 
remove RB_IPV6

6 years agoauthd: assume all providers are running
Simon Arlott [Sun, 20 Aug 2017 11:53:44 +0000 (12:53 +0100)] 
authd: assume all providers are running

Otherwise ident returns without setting itself running causing problems.

Move opm/blacklist before ident/rdns so that they can receive completion
notifications.

6 years agoMerge pull request #246 from grawity/patch-1
Aaron Jones [Thu, 17 Aug 2017 23:02:52 +0000 (23:02 +0000)] 
Merge pull request #246 from grawity/patch-1

CREDITS: update to match reality

6 years agoCREDITS: update to match reality
Mantas Mikulėnas [Thu, 17 Aug 2017 05:37:10 +0000 (08:37 +0300)] 
CREDITS: update to match reality

6 years agocharybdis 4.1-dev
Simon Arlott [Sun, 13 Aug 2017 20:57:23 +0000 (21:57 +0100)] 
charybdis 4.1-dev

6 years agom_sasl: indicate client connection type for SASL
Simon Arlott [Wed, 9 Aug 2017 21:04:11 +0000 (22:04 +0100)] 
m_sasl: indicate client connection type for SASL

6 years agolibrb: remove zstring
Simon Arlott [Sun, 6 Aug 2017 17:40:24 +0000 (18:40 +0100)] 
librb: remove zstring

rb_zstring_serialized leaks memory while doing nothing with its
arguments... nothing is using zstring so remove it

6 years agotests: add rb_dictionary1
Simon Arlott [Sun, 6 Aug 2017 17:38:25 +0000 (18:38 +0100)] 
tests: add rb_dictionary1

This doesn't do much because replacing existing elements isn't allowed.

6 years agolibrb: dictionary_add mishandles replacing elements
Simon Arlott [Sun, 6 Aug 2017 17:37:20 +0000 (18:37 +0100)] 
librb: dictionary_add mishandles replacing elements

This can only happen with soft asserts otherwise it will crash instead.

Nothing currently uses the return value of rb_dictionary_add.

6 years agocharybdis 4-rc6
Simon Arlott [Sun, 6 Aug 2017 15:43:49 +0000 (16:43 +0100)] 
charybdis 4-rc6

6 years agotests: send1: add tag tests to all functions
Simon Arlott [Sun, 6 Aug 2017 15:20:03 +0000 (16:20 +0100)] 
tests: send1: add tag tests to all functions

6 years agoircd: send tags on every message
Simon Arlott [Sun, 6 Aug 2017 11:05:24 +0000 (12:05 +0100)] 
ircd: send tags on every message

Simplify linebuf by introducing fsnprint to manage a list of printfs.
Add a msgbuf unparse cache for send functions that loop.

6 years agotests: send1: fix sendto_channel_opmod (remote) to cover all scenarios
Simon Arlott [Sun, 6 Aug 2017 12:30:47 +0000 (13:30 +0100)] 
tests: send1: fix sendto_channel_opmod (remote) to cover all scenarios

6 years agotests: send1: fix sendto_channel_opmod (remote) to call the right function
Simon Arlott [Sun, 6 Aug 2017 12:14:12 +0000 (13:14 +0100)] 
tests: send1: fix sendto_channel_opmod (remote) to call the right function

6 years agotests: send1: add missing CAP_SERVER_TIME test to sendto_channel_flags from remote...
Simon Arlott [Sun, 6 Aug 2017 12:00:49 +0000 (13:00 +0100)] 
tests: send1: add missing CAP_SERVER_TIME test to sendto_channel_flags from remote users

6 years agotests: send1: test MODE_MODERATED with sendto_channel_opmod
Simon Arlott [Sun, 6 Aug 2017 11:53:39 +0000 (12:53 +0100)] 
tests: send1: test MODE_MODERATED with sendto_channel_opmod

6 years agotests: send1: load modules in a predictable order
Simon Arlott [Sun, 6 Aug 2017 10:05:03 +0000 (11:05 +0100)] 
tests: send1: load modules in a predictable order

So that tags are added in the same order every time.

# wanted: @time=2017-07-14T02:40:00.000Z;account=test :LChanPeon!username@example.test TEST #placeholder :Hello World!
#   seen: @account=test;time=2017-07-14T02:40:00.000Z :LChanPeon!username@example.test TEST #placeholder :Hello World!

6 years agotests: add missing modules symlinks
Simon Arlott [Sun, 6 Aug 2017 00:42:51 +0000 (01:42 +0100)] 
tests: add missing modules symlinks

6 years agotests: add remaining sendto_* tests
Simon Arlott [Sun, 6 Aug 2017 00:12:59 +0000 (01:12 +0100)] 
tests: add remaining sendto_* tests

6 years agoircd: check caps for user in sendto_common_channels_local
Simon Arlott [Sat, 5 Aug 2017 21:34:17 +0000 (22:34 +0100)] 
ircd: check caps for user in sendto_common_channels_local

6 years agotests: add remote server message tests
Simon Arlott [Sat, 5 Aug 2017 15:54:44 +0000 (16:54 +0100)] 
tests: add remote server message tests

Test sendto_one, sendto_one_prefix, sendto_one_notice and complete
sendto_one_numeric (for unregistered clients).

6 years agotests: add client util make_local_person_oper()
Simon Arlott [Sat, 5 Aug 2017 13:14:53 +0000 (14:14 +0100)] 
tests: add client util make_local_person_oper()

6 years agotests: add sendto_* test framework
Simon Arlott [Sat, 5 Aug 2017 13:09:01 +0000 (14:09 +0100)] 
tests: add sendto_* test framework

6 years agoircd: log command in mod_add_cmd/mod_del_cmd error scenarios
Simon Arlott [Sat, 5 Aug 2017 11:29:52 +0000 (12:29 +0100)] 
ircd: log command in mod_add_cmd/mod_del_cmd error scenarios

6 years agoircd: substitution: fix buffer overrun if variable name is too long
Simon Arlott [Sat, 5 Aug 2017 10:27:02 +0000 (11:27 +0100)] 
ircd: substitution: fix buffer overrun if variable name is too long

Also fix the "ptr = ptr + (pptr - ptr)" aka "ptr = pptr" mess by
removing pptr.

6 years agoremove unused variables
Simon Arlott [Fri, 4 Aug 2017 20:01:17 +0000 (21:01 +0100)] 
remove unused variables

6 years agossld: avoid clang static analysis warning
Simon Arlott [Sat, 29 Jul 2017 19:29:24 +0000 (20:29 +0100)] 
ssld: avoid clang static analysis warning

Edit by @aaronmdjones: fix for loop initialisation and inner condition

6 years agotests: fix warnings
Simon Arlott [Fri, 4 Aug 2017 18:45:34 +0000 (19:45 +0100)] 
tests: fix warnings

6 years agoremove unused variables
Simon Arlott [Fri, 4 Aug 2017 18:56:29 +0000 (19:56 +0100)] 
remove unused variables

6 years agom_webirc: set sockhost before potentially using it to set host
Simon Arlott [Tue, 1 Aug 2017 21:42:56 +0000 (22:42 +0100)] 
m_webirc: set sockhost before potentially using it to set host

Remove extra IP check, it's not necessary.

6 years agocap_server_time: check return values of string functions
Simon Arlott [Mon, 31 Jul 2017 06:58:06 +0000 (07:58 +0100)] 
cap_server_time: check return values of string functions

6 years agocap_server_time: provide time with millisecond resolution
Simon Arlott [Sun, 30 Jul 2017 21:03:23 +0000 (22:03 +0100)] 
cap_server_time: provide time with millisecond resolution

6 years agocharybdis 4-rc5
Simon Arlott [Sun, 30 Jul 2017 17:43:52 +0000 (18:43 +0100)] 
charybdis 4-rc5

6 years agombedtls.c: minor fixups
Aaron Jones [Mon, 3 Jul 2017 00:12:47 +0000 (00:12 +0000)] 
mbedtls.c: minor fixups

- Add (void) casts for unused function parameters
- Rearrange member in `struct rb_mbedtls_cfg_context' for data alignment
- Document a `clang-4.0 -Weverything' (-Wcast-qual) diagnostic
- Avoid pointless conversions between positive/negative error codes
- Use capital hexadecimals in error codes and properly cast to
  (unsigned int) for %x/%X

6 years agom_cap: use rn_snprintf_try_append
Simon Arlott [Sun, 30 Jul 2017 17:04:38 +0000 (18:04 +0100)] 
m_cap: use rn_snprintf_try_append

6 years agotests: add rb_snprintf_append, rb_snprintf_try_append tests
Simon Arlott [Sun, 30 Jul 2017 16:05:26 +0000 (17:05 +0100)] 
tests: add rb_snprintf_append, rb_snprintf_try_append tests

6 years agolibrb: add rb_snprintf_try_append
Simon Arlott [Sun, 30 Jul 2017 16:04:06 +0000 (17:04 +0100)] 
librb: add rb_snprintf_try_append

For when it might fit, or it might not.

6 years agolibrb: rb_snprinf_append: handle error return value from vsnprintf()
Simon Arlott [Sun, 30 Jul 2017 16:03:30 +0000 (17:03 +0100)] 
librb: rb_snprinf_append: handle error return value from vsnprintf()

6 years agotests: add rb_linebuf_put tests
Simon Arlott [Sun, 30 Jul 2017 14:56:29 +0000 (15:56 +0100)] 
tests: add rb_linebuf_put tests

6 years agolibrb: linebuf: reduce the number of "put" implementations from 4 to 1
Simon Arlott [Sun, 30 Jul 2017 12:47:27 +0000 (13:47 +0100)] 
librb: linebuf: reduce the number of "put" implementations from 4 to 1

6 years agoRevert "Core modules cannot be unloaded, otherwise bad things happen."
Simon Arlott [Sat, 29 Jul 2017 22:51:54 +0000 (23:51 +0100)] 
Revert "Core modules cannot be unloaded, otherwise bad things happen."

This reverts commit b5cfad03195d566cd259154d212875fb238f5d80.

6 years agom_join: remove global variable parabuf
Simon Arlott [Sat, 29 Jul 2017 22:19:24 +0000 (23:19 +0100)] 
m_join: remove global variable parabuf

6 years agom_join: remove global variable modebuf
Simon Arlott [Sat, 29 Jul 2017 22:15:14 +0000 (23:15 +0100)] 
m_join: remove global variable modebuf

6 years agom_join: remove global variable para
Simon Arlott [Sat, 29 Jul 2017 22:11:36 +0000 (23:11 +0100)] 
m_join: remove global variable para

6 years agom_join: remove global variable pargs
Simon Arlott [Sat, 29 Jul 2017 22:10:35 +0000 (23:10 +0100)] 
m_join: remove global variable pargs

6 years agom_join: remove global variable mbuf
Simon Arlott [Sat, 29 Jul 2017 22:09:16 +0000 (23:09 +0100)] 
m_join: remove global variable mbuf

6 years agolibrb: linebuf needs to use the buffer limit from msgbuf_unparse_prefix
Simon Arlott [Sat, 29 Jul 2017 22:32:27 +0000 (23:32 +0100)] 
librb: linebuf needs to use the buffer limit from msgbuf_unparse_prefix

6 years agoircd: send: these buffers can be static
Simon Arlott [Sat, 29 Jul 2017 22:24:23 +0000 (23:24 +0100)] 
ircd: send: these buffers can be static

6 years agom_cap: Fix CAP LS generation
Simon Arlott [Sat, 29 Jul 2017 21:15:27 +0000 (22:15 +0100)] 
m_cap: Fix CAP LS generation

The `caplen` variable was unused, so the cap to be output wasn't considered
when determining whether or not it would fit.

6 years agolibrb: rb_rawbuf_length: do something if soft assert fails
Simon Arlott [Sat, 29 Jul 2017 16:47:07 +0000 (17:47 +0100)] 
librb: rb_rawbuf_length: do something if soft assert fails

correct the value of rb->len

6 years agotests: add msgbuf_unparse tests
Simon Arlott [Fri, 28 Jul 2017 17:34:46 +0000 (18:34 +0100)] 
tests: add msgbuf_unparse tests

6 years agotests: add substitution_parse tests
Simon Arlott [Thu, 27 Jul 2017 11:58:13 +0000 (12:58 +0100)] 
tests: add substitution_parse tests

6 years agotests: add msgbuf_parse tests
Simon Arlott [Wed, 26 Jul 2017 20:06:49 +0000 (21:06 +0100)] 
tests: add msgbuf_parse tests

6 years agomsgbuf: correctly split buffers into IRCv3 tags and RFC1459 message data
Simon Arlott [Wed, 28 Jun 2017 20:24:10 +0000 (21:24 +0100)] 
msgbuf: correctly split buffers into IRCv3 tags and RFC1459 message data

6 years agolinebuf: increase buffer size to accommodate IRCv3 tags
Simon Arlott [Wed, 28 Jun 2017 19:40:03 +0000 (20:40 +0100)] 
linebuf: increase buffer size to accommodate IRCv3 tags

6 years agotests: add C TAP harness
Simon Arlott [Tue, 25 Jul 2017 20:02:45 +0000 (21:02 +0100)] 
tests: add C TAP harness