summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Use seprintf for capListC. McEnroe2021-06-091-8/+6
|
* Add seprintfC. McEnroe2021-06-091-0/+13
| | | | | | | | | Based on seprint(2) from Plan 9. I'm not sure if my return value exactly matches Plan 9's in the case of truncation. seprint(2) is described only as returning a pointer to the terminating '\0', but if it does so even in the case of truncation, it is awkward for the caller to detect. This implementation returns end in the truncation case, so that (ptr == end) indicates truncation.
* Add pounce-notify to READMEC. McEnroe2021-05-271-1/+7
|
* Fix ENVIRONMENT formatting in pounce-notify(1)C. McEnroe2021-05-271-0/+1
|
* Add note about Libera.Chat SASL-only rangesC. McEnroe2021-05-271-1/+7
|
* Add QUIRKS fileC. McEnroe2021-05-252-1/+64
|
* Replace freenode with tilde.chatC. McEnroe2021-05-194-10/+10
|
* notify: Reword pounce-notify manualC. McEnroe2021-05-041-35/+22
|
* Clean up Makefiles, configure scriptsC. McEnroe2021-05-028-76/+83
| | | | | | Default MANDIR to ${PREFIX}/man since it turns out man-db includes /usr/local/man by default. Add support for BINDIR. Separate libs out into LDADD variables.
* palaver: Exit on getopt failureC. McEnroe2021-04-301-0/+1
| | | | Oops.
* notify: Implement pounce-notifyC. McEnroe2021-04-304-0/+419
|
* notify: Add prospective manual page for pounce-notifyC. McEnroe2021-04-301-0/+121
|
* Rename contrib to extraC. McEnroe2021-04-306-2/+2
|
* palaver: Add -s flag for case-sensitive matchingC. McEnroe2021-04-302-4/+10
|
* palaver: Remove last vestiges of rc scriptsC. McEnroe2021-04-292-2/+0
|
* palaver: Track badge count per connection in SQLiteC. McEnroe2021-04-291-30/+67
| | | | And send an accurate total badge count.
* palaver: Drop no longer used network fieldC. McEnroe2021-04-271-14/+6
|
* Don't use :trailing parameter for JOINC. McEnroe2021-04-091-1/+1
| | | | | It seems some IRCds don't even parse this correctly. It also should never have been done this way since it breaks sending channel keys.
* Add donation link to READMEC. McEnroe2021-02-051-1/+5
|
* Drop pledge capabilities after binding and connectingC. McEnroe2021-02-011-1/+11
|
* Add Repology links to READMEC. McEnroe2021-01-281-4/+14
| | | | | LibreTLS in particular is gaining traction in packaging, so point to Repology pages to make users' lives easier.
* Clarify configuration path interpretationsC. McEnroe2021-01-281-5/+7
|
* Tighten up XDG base directory path handlingC. McEnroe2021-01-281-25/+13
| | | | | | | Don't search base directories if path starts with "/", "./" or "../", but still do if the path simply starts with ".". Bail early if HOME is needed but unset. Don't attempt to open the original path in configOpen and dataOpen.
* Refactor hasTag to be usable in more placesC. McEnroe2021-01-241-30/+15
|
* Support echo-message capabilityC. McEnroe2021-01-244-25/+73
| | | | | | | Only request it with labeled-response, since it is impossible to correlate messages to clients without. For clients without echo-message, synthesize a label on PRIVMSG/NOTICE/TAGMSG, then filter out received messages with that label.
* Add -o and -t options to trust self-signed certificatesC. McEnroe2021-01-114-4/+77
|
* Make SYNOPSIS arguments consistent with option namesC. McEnroe2021-01-111-12/+12
|
* Allow interspersing flags and config filesC. McEnroe2021-01-111-12/+8
| | | | | | Don't wait for getopt_long to move all the arguments to the end. This allows overriding options set by config files by placing flags after them on the command line.
* Send CAP END if CAP LS response is emptyC. McEnroe2020-12-211-1/+5
| | | | | Or only unsupported caps. Or, as the corresponding commit in catgirl says, "if CAP LS doesn't list anything good."
* Alphabetize STANDARDS sectionsC. McEnroe2020-12-182-55/+46
|
* Handle 437 ERR_UNAVAILRESOURCE like ERR_NICKNAMEINUSEC. McEnroe2020-12-051-0/+1
| | | | | Not totally clear under what conditions 437 is returned, but if it happens during registration, we should pick a new nick.
* Use uint64_t for save file signatureC. McEnroe2020-11-281-5/+7
| | | | This fixes building on 32-bit platforms.
* Unlink existing UNIX socket if it can't be connected toC. McEnroe2020-11-231-10/+26
| | | | | | I think this emulates SO_REUSEADDR, which for some reason doesn't work on PF_UNIX. If the socket exists, check if connect(2) works, rather than clobbering the socket being used by a still-running instance.
* Clean up main loop loopsC. McEnroe2020-11-211-51/+39
|
* Add lazy client registration timeoutC. McEnroe2020-11-203-4/+18
| | | | | | I don't think this is worth adding a configuration option for since real clients will definitely accomplish registration faster than 10s and it's long enough to even type out manually for testing.
* Only allow clients to AUTHENTICATE if using a certC. McEnroe2020-11-161-2/+3
| | | | | | Otherwise the successful authentication message can leak information to unauthenticated clients when both certificate and password authentication are enabled.
* Set client sockets non-blockingC. McEnroe2020-11-163-6/+12
| | | | | | | | | | | | | | | | | | | | | Except for during writes. This prevents pounce getting blocked on a client sending only a partial TLS record, for example. Writes still need to block because pounce doesn't have a way to resume them. (And it would do so by having a buffer, but sockets already have a send buffer, so what would be the point of that?) I don't think it should be a problem since outside of stateSync, writes only happen when poll returns POLLOUT. I feel like ideally SO_SNDLOWAT would be set to guarantee a full IRC message can always be written on POLLOUT, but since it's actually TLS records being sent, it's not obvious what the size would be. I'm also making an assumption here that tls_read returning TLS_WANT_POLLOUT is unlikely to happen, since I don't actually set pollfd.events based on that. I'm not sure how wanting to resume a tls_read after a POLLOUT could be cleanly handled. I'm just going to hope that if it does happen, the regular poll loop will eventually sort it out...
* Swap localAccept parameter orderC. McEnroe2020-11-143-15/+15
|
* Only send shutdown QUIT and ERROR to registered clientsC. McEnroe2020-11-141-3/+6
|
* Make struct Client publicC. McEnroe2020-11-143-25/+18
|
* Wait for POLLIN to do client tls_handshakeC. McEnroe2020-11-132-12/+22
| | | | | | | | | | | Otherwise a client could cause pounce to hang (since the sockets are left blocking) by opening a connection without handshaking! Oops, that's pretty bad. Since the sockets are still blocking, a hang can still be caused by a client sending a partial handshake then waiting. More fixes to follow. pounce is slightly protected from this when used with calico, as it applies a timeout to waiting for the ClientHello.
* Use a fixed size pollfd array in calicoC. McEnroe2020-11-131-73/+57
| | | | | My thinking here is that it's better to not allocate in response to incoming connections. This also just makes the code a little simpler.
* Disallow / anywhere in server nameC. McEnroe2020-11-131-1/+1
|
* Check bounds of ClientHello extensions lengthC. McEnroe2020-11-121-1/+3
|
* Report paths in unveil errorsC. McEnroe2020-11-101-2/+2
|
* contrib/palaver: Use open_memstream instead of fmemopenC. McEnroe2020-10-241-11/+11
| | | | | Somehow I never knew about this function. Much better than fmemopen with mode "w".
* Handle signals before the main loopC. McEnroe2020-10-111-0/+9
| | | | This is a long-standing issue I ignored.
* Fix possibliy uninitialized errorC. McEnroe2020-09-091-0/+1
| | | | It won't be, but gcc thinks it might.
* Refactor reserialization and client self-producingC. McEnroe2020-08-311-47/+45
|
* Add chmod+chown to certbot exampleC. McEnroe2020-08-301-4/+13
|