about summary refs log tree commit diff
path: root/scoop.c (unfollow)
Commit message (Collapse)Author
2021-05-07Order by rowids for scoop -lJune McEnroe
This vastly improves the speed of the query, with the same effect as the change to litterbox's query interface.
2021-05-07Format litterbox query interface results like scoopJune McEnroe
With the colored context too.
2021-05-07Limit query interface results using search.rowid DESCJune McEnroe
This vastly increases the speed of the query for any search with a decent number of matches. It can be slightly less accurate since it depends on the insert order of events, but that usually won't be a problem for a query limited to a single network. The litterbox query interface isn't meant to exhaustively list results either.
2021-05-02Get list of formats to test from unscoop itselfJune McEnroe
2021-05-02Default to MANDIR=${PREFIX}/man, support BINDIRJune McEnroe
I originally avoided defaulting MANDIR to /usr/local/man because I thought that might not work on GNU/Linux, but I checked and it turns out man-db not only defaults to including /usr/local/man (if /usr/local/bin is in PATH), it also includes /usr/man. So more reason to default to ${PREFIX}/man.
2021-05-02Only link litterbox with -ltlsJune McEnroe
2021-04-28Match multiple types with -tJune McEnroe
2021-04-27Interpret -D, -a, -b as local time with -LJune McEnroe
2021-04-27Use QueryCap for selectJune McEnroe
No idea why it was like this.
2021-04-21Add missing comma in manualJune McEnroe
2021-04-03Add -t option to trust self-signed certificatesJune McEnroe
Not adding a corresponding -o option like in pounce and catgirl, since litterbox is likely connecting to pounce anyway.
2021-04-03Clarify configuration path interpretationsJune McEnroe
2021-04-03Tighten up XDG base directory path handlingJune McEnroe
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.
2021-04-02Skip STATUSMSG prefixesJune McEnroe
This feature is rarely used, so just skip STATUSMSG prefixes in the target so events use the right context.
2021-01-15Allow interspersing flags and config files 1.7June McEnroe
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.
2020-12-13Color contexts like catgirlJune McEnroe
Well, except for query contexts where the username is lost.
2020-12-13Emulate catgirl in 16-color modeJune McEnroe
2020-12-13Refactor scoop formattersJune McEnroe
2020-12-13Use nick for color if user is "*"June McEnroe
Not accurate but better than every message being the same color in imported logs.
2020-10-24Directly output IRC-to-ANSI conversionJune McEnroe
2020-09-30Rename unscoop test flag to -!June McEnroe
2020-09-30Undocument unscoop -nJune McEnroe
It's only useful internally for running tests.
2020-08-27Remove rc script 1.6June McEnroe
The rc script kinda just sucks for running this, and catsit exists now. Probably no one but me was ever using it anyway.
2020-08-26Move rc script docs to rc script commentJune McEnroe
2020-08-25Recommend catsit first in READMEJune McEnroe
Honestly running it with the rc script just sucks.
2020-08-24Mention catsit in READMEJune McEnroe
2020-08-22Document how cert/priv are searched forJune McEnroe
2020-08-21Use a static buffer for base directory pathsJune McEnroe
2020-08-20Use configPath to load cert/privJune McEnroe
2020-08-20Use dataPath for dbFindJune McEnroe
2020-08-20Import xdg.c from catgirlJune McEnroe
2020-08-10Say "OpenSSL" in additional permission noticesJune McEnroe
LibreSSL is "a modified version of that library". Oops, should've done this before tagging, but I don't think it matters much. They're both versions of the same library, right?
2020-08-10Mention LibreTLS in README 1.5June McEnroe
2020-08-01Check return value of asprintfJune McEnroe
On GNU, asprintf leaves the destination pointer undefined on failure. Clowns.
2020-07-24Don't bother with --sysconfdirJune McEnroe
It's only used on FreeBSD anyway.
2020-07-24Use asprintf to concatenate queryJune McEnroe
Newer gcc will point out that concatenating 3 buffers of 4096 bytes into a buffer of 4096 might truncate, which I don't care about because the query should never be 4K anyway, but it's simple to use asprintf here.
2020-07-24Fix select #defineJune McEnroe
2020-07-24Rewrite configure script for all platforms, add OpenBSDJune McEnroe
2020-07-21Add scooper to READMEJune McEnroe
2020-07-19Add -U scooper-url option to make scooper linksJune McEnroe
2020-07-11Replace time index with (context, time) index 1.4p1June McEnroe
This is what it should have been...
2020-07-08Delay creating eventsTime index when migration from v2 1.4June McEnroe
2020-07-08Add link to "IRC Suite" post in READMEJune McEnroe
2020-07-08Fix -D nowJune McEnroe
2020-07-08Convert timestamps to unix epoch timeJune McEnroe
This saves 125 MB on my own database after VACUUM.
2020-07-07Allocate enough bind space for :open and :closeJune McEnroe
Big oops!
2020-07-07Create index on events.timeJune McEnroe
This vastly improves the speed of scoop -a, -b and -D.
2020-07-07Use >= and < on events.time for -DJune McEnroe
This will enable the use of an index on events.time.
2020-07-07Only join FTS table when FTS query is presentJune McEnroe
This makes query construction more complex, but should allow for performance gains, since it seems that as soon as the FTS table is involved, SQLite will use no other indexes. (The query planner always uses a VFilter.)
2020-06-24Bump ParamCap to 254June McEnroe
Apparently IRCds have decided that the 15-parameter limit doesn't matter anymore. 254 is the maximum number of single-byte parameters (following a single-byte command) which fit in a 512-byte CR-LF-terminated line. When everyone decides that the 512-byte line length limit doesn't matter either, I will delete my software and people can use some JavaScript garbage instead. This makes struct Message 2080 bytes, but there's only ever one of it around at once. Avoid passing it by value to handle.