]>
jfr.im git - irc/quakenet/newserv.git/log
Chris Porter [Fri, 3 Oct 2008 00:28:47 +0000 (01:28 +0100)]
Add trustadd and trustgroupadd.
Chris Porter [Thu, 2 Oct 2008 19:42:29 +0000 (20:42 +0100)]
Merge.
Chris Porter [Thu, 2 Oct 2008 19:41:46 +0000 (20:41 +0100)]
Select the shortest prefix BGP style when looking for hosts, since we now permit nested trusts.
Chris Porter [Thu, 2 Oct 2008 17:07:29 +0000 (18:07 +0100)]
Allow *'s in non-quoted newsearch.
Chris Porter [Thu, 2 Oct 2008 17:03:24 +0000 (18:03 +0100)]
Merge.
Chris Porter [Thu, 2 Oct 2008 17:00:43 +0000 (18:00 +0100)]
Add trusts_newsearch.
Chris Porter [Thu, 2 Oct 2008 16:30:42 +0000 (17:30 +0100)]
Fix up phony targets for newsearch, chanserv and geoip.
Chris Porter [Thu, 2 Oct 2008 03:25:40 +0000 (04:25 +0100)]
Merge.
Chris Porter [Thu, 2 Oct 2008 03:25:24 +0000 (04:25 +0100)]
newsearches makefile was missing the distclean target.
Chris Porter [Thu, 2 Oct 2008 03:23:39 +0000 (04:23 +0100)]
Merge.
Chris Porter [Thu, 2 Oct 2008 03:22:57 +0000 (04:22 +0100)]
Okay, it wasn't quite as simple as that, it was a complex interaction between the dbapi2 wrapper and sqlite.
Chris Porter [Thu, 2 Oct 2008 03:01:48 +0000 (04:01 +0100)]
Redundant merge.
Chris Porter [Thu, 2 Oct 2008 03:01:20 +0000 (04:01 +0100)]
Bump MAXNICKEXTs.
Chris Porter [Thu, 2 Oct 2008 02:58:12 +0000 (03:58 +0100)]
Merge.
Chris Porter [Thu, 2 Oct 2008 02:55:04 +0000 (03:55 +0100)]
Fix a bug in sqlite table loader.
Chris Porter [Thu, 2 Oct 2008 02:38:32 +0000 (03:38 +0100)]
No reason we can't reload on the fly now.
Chris Porter [Thu, 2 Oct 2008 02:36:05 +0000 (03:36 +0100)]
Radically simplify the reloading of the database on the fly.
Chris Porter [Thu, 2 Oct 2008 02:04:07 +0000 (03:04 +0100)]
Fix memory leak discovered by nsmalloc.
Fix double registration of commands.
Chris Porter [Thu, 2 Oct 2008 01:24:34 +0000 (02:24 +0100)]
Convert trusts to nsmalloc.
Chris Porter [Thu, 2 Oct 2008 01:15:10 +0000 (02:15 +0100)]
Add trust group extensions and example.
Chris Porter [Thu, 2 Oct 2008 00:48:52 +0000 (01:48 +0100)]
Schedule the DB load triggerhook immediately after we finish, to allow the other modules to register.
Chris Porter [Thu, 2 Oct 2008 00:43:55 +0000 (01:43 +0100)]
Fix bug in db flushing.
Chris Porter [Thu, 2 Oct 2008 00:33:51 +0000 (01:33 +0100)]
We guarantee all sstrings are non NULL.
Chris Porter [Thu, 2 Oct 2008 00:26:11 +0000 (01:26 +0100)]
Add example policy module.
Chris Porter [Thu, 2 Oct 2008 00:17:14 +0000 (01:17 +0100)]
Make trustmigrate +d only.
Chris Porter [Thu, 2 Oct 2008 00:15:18 +0000 (01:15 +0100)]
Include the count handler in the main event handlers until we get priority hooks.
Unload the database when migration is complete to stop the schedule stepping on it.
Chris Porter [Wed, 1 Oct 2008 23:54:27 +0000 (00:54 +0100)]
Trusts now stores an id for each trusthost, doing updates by string sucked.
Unfortunately now the primary key can't be all three fields.
Chris Porter [Wed, 1 Oct 2008 23:44:59 +0000 (00:44 +0100)]
Add database flushing, rename max/maxuse both to maxusage, record max usage/lastseen.
Chris Porter [Wed, 1 Oct 2008 23:06:51 +0000 (00:06 +0100)]
Bump MAXNICKEXTS.
Chris Porter [Wed, 1 Oct 2008 23:06:34 +0000 (00:06 +0100)]
No longer allow db reloading on the fly.
Chris Porter [Wed, 1 Oct 2008 22:57:41 +0000 (23:57 +0100)]
Connect nick pointers and trusthosts.
Chris Porter [Wed, 1 Oct 2008 21:58:49 +0000 (22:58 +0100)]
Move formatting functions to formats.c
Chris Porter [Wed, 1 Oct 2008 21:51:27 +0000 (22:51 +0100)]
Store hosts as integers rather than sstrings.
Chris Porter [Wed, 1 Oct 2008 18:02:26 +0000 (19:02 +0100)]
Refactor data storage into data.c
Chris Porter [Tue, 30 Sep 2008 19:35:03 +0000 (20:35 +0100)]
Add trustlist and a status function.
Chris Porter [Tue, 30 Sep 2008 18:43:41 +0000 (19:43 +0100)]
Fix up migration to use transactions, also start a commands module.
Chris Porter [Tue, 30 Sep 2008 17:02:03 +0000 (18:02 +0100)]
Merge.
Chris Porter [Tue, 30 Sep 2008 17:00:53 +0000 (18:00 +0100)]
dbapi loadtable function should mutate the table name to include the schema.
Chris Porter [Tue, 30 Sep 2008 16:54:51 +0000 (17:54 +0100)]
Major reorganisation.
Chris Porter [Tue, 30 Sep 2008 05:56:05 +0000 (06:56 +0100)]
This should be defined in the build.mk file.
Chris Porter [Tue, 30 Sep 2008 05:51:48 +0000 (06:51 +0100)]
Merge.
Chris Porter [Tue, 30 Sep 2008 05:51:21 +0000 (06:51 +0100)]
Actually fix the bug.
Chris Porter [Tue, 30 Sep 2008 05:44:21 +0000 (06:44 +0100)]
Merge.
Chris Porter [Tue, 30 Sep 2008 05:43:56 +0000 (06:43 +0100)]
Merge.
Chris Porter [Tue, 30 Sep 2008 05:43:23 +0000 (06:43 +0100)]
Silly dbapi2 bug.
Chris Porter [Tue, 30 Sep 2008 05:38:49 +0000 (06:38 +0100)]
Efficiency change.
Chris Porter [Tue, 30 Sep 2008 05:35:29 +0000 (06:35 +0100)]
Fix silly bugs.
Chris Porter [Tue, 30 Sep 2008 05:31:24 +0000 (06:31 +0100)]
Duplicate error code, bump the others, add some debug info and fix the -_ business.
Chris Porter [Tue, 30 Sep 2008 05:20:25 +0000 (06:20 +0100)]
Make the demo a bit more useful.
Chris Porter [Tue, 30 Sep 2008 05:02:28 +0000 (06:02 +0100)]
Merge.
Chris Porter [Tue, 30 Sep 2008 05:00:54 +0000 (06:00 +0100)]
Add some more types to dbapi2's snprintf function.
Chris Porter [Tue, 30 Sep 2008 04:47:08 +0000 (05:47 +0100)]
Add trusts_migration module.
Chris Porter [Tue, 30 Sep 2008 04:46:12 +0000 (05:46 +0100)]
Fix bug in unescaping code.
Chris Porter [Tue, 30 Sep 2008 03:09:48 +0000 (04:09 +0100)]
Make the relay re-entrant.
Chris Porter [Tue, 30 Sep 2008 02:22:24 +0000 (03:22 +0100)]
Don't show warnings for 0 permits, also unescape data before passing it to the callback.
Chris Porter [Tue, 30 Sep 2008 01:15:57 +0000 (02:15 +0100)]
Move nterfacer checking of rlines into handlers (where it should be...)
Chris Porter [Tue, 30 Sep 2008 01:03:59 +0000 (02:03 +0100)]
Allow newserv to send nterfacer commands.
Cruicky [Mon, 29 Sep 2008 10:45:42 +0000 (11:45 +0100)]
Add cumodecount and cumodepct
Add deprecation notice to oppct
Chris Porter [Sun, 21 Sep 2008 19:58:09 +0000 (20:58 +0100)]
Merge.
Chris Porter [Sun, 21 Sep 2008 16:47:42 +0000 (17:47 +0100)]
Get rid of newsearch warnings
Chris Porter [Sun, 21 Sep 2008 16:15:45 +0000 (17:15 +0100)]
Add module versions to dbapi2/adapters.
Chris Porter [Sun, 21 Sep 2008 16:11:23 +0000 (17:11 +0100)]
Allow dots, hashes, plus and minus in identifiers in newsearch.
Chris Porter [Sun, 21 Sep 2008 16:05:00 +0000 (17:05 +0100)]
Fix usage of argv in lots of newsearch commands by calling the parser and checking the result is constant.
Fix memory leaks in gline/kill/notice.
Rewrite gline's argument parser as it was a bit horrible.
Chris Porter [Sun, 21 Sep 2008 14:57:03 +0000 (15:57 +0100)]
Allow numbers in identifiers.
Chris Porter [Sun, 21 Sep 2008 14:52:54 +0000 (15:52 +0100)]
Fix a few memory leaks in newsearch.
Chris Porter [Sun, 21 Sep 2008 13:34:24 +0000 (14:34 +0100)]
Add lexer position information to errors, improve error messages too.
Chris Porter [Sun, 21 Sep 2008 11:28:35 +0000 (12:28 +0100)]
Add pascal type strings to newsearch.
Chris Porter [Sun, 21 Sep 2008 11:28:28 +0000 (12:28 +0100)]
Use correct NO level for auth.
Chris Porter [Sun, 21 Sep 2008 01:38:37 +0000 (02:38 +0100)]
Merge.
Chris Porter [Sun, 21 Sep 2008 01:38:14 +0000 (02:38 +0100)]
Remove some of the excess logic from the AST printer.
Chris Porter [Sun, 21 Sep 2008 01:26:48 +0000 (02:26 +0100)]
Merge.
Chris Porter [Sun, 21 Sep 2008 01:25:33 +0000 (02:25 +0100)]
I do wonder how this worked on FreeBSD (newsearch parser changes).
Chris Porter [Sun, 21 Sep 2008 01:17:50 +0000 (02:17 +0100)]
Undo bison changes, they don't work with flex.
Use flex by default.
Fix bug in new sstring code.
Chris Porter [Sun, 21 Sep 2008 01:13:11 +0000 (02:13 +0100)]
sqlite needs to link against -lc on Linux.
Chris Porter [Sun, 21 Sep 2008 01:09:13 +0000 (02:09 +0100)]
Various untested fixes for bison, stringlist in newsearch parser now uses sstring instead.
Cruicky [Sun, 21 Sep 2008 00:52:35 +0000 (01:52 +0100)]
Merge.
Cruicky [Sun, 21 Sep 2008 00:51:20 +0000 (01:51 +0100)]
Remove unneeded line
Chris Porter [Sun, 21 Sep 2008 00:40:37 +0000 (01:40 +0100)]
Merge.
Chris Porter [Sun, 21 Sep 2008 00:38:09 +0000 (01:38 +0100)]
Add new newsearch parser.
Currently disabled by default.
Cruicky [Sat, 20 Sep 2008 23:23:56 +0000 (00:23 +0100)]
Add additional cumodes functionality
Cruicky [Sat, 20 Sep 2008 23:16:07 +0000 (00:16 +0100)]
Fix sillyness
Cruicky [Sat, 20 Sep 2008 21:37:34 +0000 (22:37 +0100)]
Add nickiter function
Chris Porter [Sat, 20 Sep 2008 16:24:00 +0000 (17:24 +0100)]
Fix some really stupid bugs in stringbuf (no uninitialised warnings from gcc :().
Fix dbescapestring length in sqlite.
Fix va_arg passing in simplequery functions.
Fix quotestring checking wrong return value from stringbuf.
Chris Porter [Sat, 20 Sep 2008 15:55:18 +0000 (16:55 +0100)]
Add optional authflags to auth.
Chris Porter [Sat, 20 Sep 2008 15:45:59 +0000 (16:45 +0100)]
Add auth module, I've written this at least 50 times...
Chris Porter [Sat, 20 Sep 2008 15:24:24 +0000 (16:24 +0100)]
newsearch: move display and limit inside the context object.
splidge [Wed, 17 Sep 2008 10:55:31 +0000 (11:55 +0100)]
Merge.
Chris Porter [Wed, 17 Sep 2008 01:31:21 +0000 (02:31 +0100)]
spewemail/spewdb didn't return correct usage message.
Chris Porter [Tue, 16 Sep 2008 05:49:24 +0000 (06:49 +0100)]
Forgot to remove escaping in noperserv for new queries.
Chris Porter [Tue, 16 Sep 2008 05:48:38 +0000 (06:48 +0100)]
Seems silly to have more typing for the safe strings, the unsafe ones now require the 'unsafe' prefix while the safe ones no longer need one.
Chris Porter [Tue, 16 Sep 2008 05:44:42 +0000 (06:44 +0100)]
Fix off by one bug in dbvsnprintf, convert noperserv to use safe queries.
Chris Porter [Tue, 16 Sep 2008 05:33:54 +0000 (06:33 +0100)]
Add raw string type 'R', and table name 'T' to dbsafequery.
This allows queries like:
db->safesquery(db, "INSERT INTO ? VALUES (?, ?)", "Tss", "fish", "moo", "bot");
which will end up (depending on db provider) as something like:
"INSERT INTO fishservice.fish VALUES (E'moo', E'bot');
Chris Porter [Tue, 16 Sep 2008 05:28:33 +0000 (06:28 +0100)]
Add truncation checks to database functions in dbapi2.
Chris Porter [Tue, 16 Sep 2008 05:24:36 +0000 (06:24 +0100)]
Add safe query/simplequery/create table functions to dbapi2, these functions act like q9snprintf, that is you supply a type string as well, eg ->safequery(db, "INSERT INTO moo VALUES (?, ?, ?)", "ssd", "moo", "fish", 2) -- currently untested.
Add dbapi2 query/loadtable wrapper functions.
Remove the dbapi fv functions I added yesterday!
Chris Porter [Tue, 16 Sep 2008 04:49:58 +0000 (05:49 +0100)]
Use correct constness and unsignedness in dbapi.
Chris Porter [Tue, 16 Sep 2008 01:42:30 +0000 (02:42 +0100)]
Add table name method to dbapi2.
Chris Porter [Tue, 16 Sep 2008 01:31:06 +0000 (02:31 +0100)]
dbapi2 loadtable implementation.
Chris Porter [Mon, 15 Sep 2008 05:52:34 +0000 (06:52 +0100)]
Somehow this file went missing.
Chris Porter [Mon, 15 Sep 2008 05:28:54 +0000 (06:28 +0100)]
Port noperserv to dbapi2.
Chris Porter [Mon, 15 Sep 2008 05:27:51 +0000 (06:27 +0100)]
DBAPI2 now uses sqlite and pqsql by an adapter.