]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
15 years agosqlite needs to link against -lc on Linux.
Chris Porter [Sun, 21 Sep 2008 01:13:11 +0000 (02:13 +0100)] 
sqlite needs to link against -lc on Linux.

15 years agoVarious untested fixes for bison, stringlist in newsearch parser now uses sstring...
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.

15 years agoMerge.
Chris Porter [Sun, 21 Sep 2008 00:40:37 +0000 (01:40 +0100)] 
Merge.

15 years agoAdd new newsearch parser.
Chris Porter [Sun, 21 Sep 2008 00:38:09 +0000 (01:38 +0100)] 
Add new newsearch parser.
Currently disabled by default.

15 years agoAdd additional cumodes functionality
Cruicky [Sat, 20 Sep 2008 23:23:56 +0000 (00:23 +0100)] 
Add additional cumodes functionality

15 years agoFix sillyness
Cruicky [Sat, 20 Sep 2008 23:16:07 +0000 (00:16 +0100)] 
Fix sillyness

15 years agoAdd nickiter function
Cruicky [Sat, 20 Sep 2008 21:37:34 +0000 (22:37 +0100)] 
Add nickiter function

15 years agoFix some really stupid bugs in stringbuf (no uninitialised warnings from gcc :().
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.

15 years agoAdd optional authflags to auth.
Chris Porter [Sat, 20 Sep 2008 15:55:18 +0000 (16:55 +0100)] 
Add optional authflags to auth.

15 years agoAdd auth module, I've written this at least 50 times...
Chris Porter [Sat, 20 Sep 2008 15:45:59 +0000 (16:45 +0100)] 
Add auth module, I've written this at least 50 times...

15 years agonewsearch: move display and limit inside the context object.
Chris Porter [Sat, 20 Sep 2008 15:24:24 +0000 (16:24 +0100)] 
newsearch: move display and limit inside the context object.

15 years agoMerge.
splidge [Wed, 17 Sep 2008 10:55:31 +0000 (11:55 +0100)] 
Merge.

15 years agospewemail/spewdb didn't return correct usage message.
Chris Porter [Wed, 17 Sep 2008 01:31:21 +0000 (02:31 +0100)] 
spewemail/spewdb didn't return correct usage message.

15 years agoForgot to remove escaping in noperserv for new queries.
Chris Porter [Tue, 16 Sep 2008 05:49:24 +0000 (06:49 +0100)] 
Forgot to remove escaping in noperserv for new queries.

15 years agoSeems silly to have more typing for the safe strings, the unsafe ones now require...
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.

15 years agoFix off by one bug in dbvsnprintf, convert noperserv to use safe queries.
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.

15 years agoAdd raw string type 'R', and table name 'T' to dbsafequery.
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');

15 years agoAdd truncation checks to database functions in dbapi2.
Chris Porter [Tue, 16 Sep 2008 05:28:33 +0000 (06:28 +0100)] 
Add truncation checks to database functions in dbapi2.

15 years agoAdd safe query/simplequery/create table functions to dbapi2, these functions act...
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!

15 years agoUse correct constness and unsignedness in dbapi.
Chris Porter [Tue, 16 Sep 2008 04:49:58 +0000 (05:49 +0100)] 
Use correct constness and unsignedness in dbapi.

15 years agoAdd table name method to dbapi2.
Chris Porter [Tue, 16 Sep 2008 01:42:30 +0000 (02:42 +0100)] 
Add table name method to dbapi2.

15 years agodbapi2 loadtable implementation.
Chris Porter [Tue, 16 Sep 2008 01:31:06 +0000 (02:31 +0100)] 
dbapi2 loadtable implementation.

15 years agoSomehow this file went missing.
Chris Porter [Mon, 15 Sep 2008 05:52:34 +0000 (06:52 +0100)] 
Somehow this file went missing.

15 years agoPort noperserv to dbapi2.
Chris Porter [Mon, 15 Sep 2008 05:28:54 +0000 (06:28 +0100)] 
Port noperserv to dbapi2.

15 years agoDBAPI2 now uses sqlite and pqsql by an adapter.
Chris Porter [Mon, 15 Sep 2008 05:27:51 +0000 (06:27 +0100)] 
DBAPI2 now uses sqlite and pqsql by an adapter.

15 years agoAdd va_arg query functions to pqsql and to dbapi.
Chris Porter [Mon, 15 Sep 2008 05:26:04 +0000 (06:26 +0100)] 
Add va_arg query functions to pqsql and to dbapi.
Add loadtable_tag to dbapi.

15 years agoNow works, at least with noperserv.
Chris Porter [Mon, 15 Sep 2008 04:15:01 +0000 (05:15 +0100)] 
Now works, at least with noperserv.
loadtable not tested.

15 years agoAdd dbapi2, currently untested.
Chris Porter [Mon, 15 Sep 2008 02:49:04 +0000 (03:49 +0100)] 
Add dbapi2, currently untested.

15 years agoAdd string copy with length function to stringbuf.
Chris Porter [Mon, 15 Sep 2008 02:47:27 +0000 (03:47 +0100)] 
Add string copy with length function to stringbuf.

15 years agoAdd a tag for loadtable.
Chris Porter [Mon, 15 Sep 2008 02:26:17 +0000 (03:26 +0100)] 
Add a tag for loadtable.

15 years agoAdd nscalloc.
Chris Porter [Mon, 15 Sep 2008 00:38:47 +0000 (01:38 +0100)] 
Add nscalloc.

15 years agoSick of typing --with-dbapi=sqlite*3*
Chris Porter [Sun, 14 Sep 2008 21:01:09 +0000 (22:01 +0100)] 
Sick of typing --with-dbapi=sqlite*3*

15 years agoMerge.
Chris Porter [Sun, 14 Sep 2008 20:57:53 +0000 (21:57 +0100)] 
Merge.

15 years agoFix op count
Cruicky [Sat, 13 Sep 2008 15:22:48 +0000 (16:22 +0100)] 
Fix op count

15 years agoFix newsearch warning.
Chris Porter [Thu, 11 Sep 2008 16:40:45 +0000 (17:40 +0100)] 
Fix newsearch warning.

15 years agoMerge.
Chris Porter [Thu, 11 Sep 2008 16:32:14 +0000 (17:32 +0100)] 
Merge.

15 years agoFix cosmetic bug in email/newpass for staff from Q.
Chris Porter [Thu, 11 Sep 2008 16:31:10 +0000 (17:31 +0100)] 
Fix cosmetic bug in email/newpass for staff from Q.

15 years agoTypo fixes, also forgot to hg add my sqlite wrapper.
Chris Porter [Thu, 11 Sep 2008 01:10:22 +0000 (02:10 +0100)] 
Typo fixes, also forgot to hg add my sqlite wrapper.

15 years agoInitialise sqlite correctly.
Chris Porter [Thu, 11 Sep 2008 01:03:55 +0000 (02:03 +0100)] 
Initialise sqlite correctly.

15 years agoEmbed sqlite3.
Chris Porter [Thu, 11 Sep 2008 00:59:42 +0000 (01:59 +0100)] 
Embed sqlite3.

15 years agoAttempt to fix some of the mess on N, T now uses the node user count for *@glines
Chris Porter [Thu, 11 Sep 2008 00:02:52 +0000 (00:02 +0000)] 
Attempt to fix some of the mess on N, T now uses the node user count for *@glines

15 years agoMerge.
Chris Porter [Wed, 10 Sep 2008 23:59:55 +0000 (23:59 +0000)] 
Merge.

15 years agoMerge.
Chris Porter [Wed, 10 Sep 2008 22:49:28 +0000 (23:49 +0100)] 
Merge.

15 years agoUpdate list of numerics, also convert localuserstats from horrible strcat to stringbuf.
Chris Porter [Wed, 10 Sep 2008 22:46:37 +0000 (23:46 +0100)] 
Update list of numerics, also convert localuserstats from horrible strcat to stringbuf.

16 years agoMoved the "Auth successful" message after the setaccount() so that the message will...
splidge [Tue, 9 Sep 2008 13:08:52 +0000 (14:08 +0100)] 
Moved the "Auth successful" message after the setaccount() so that the message will honor the user's PRIVMSG/NOTICE preference.

16 years agoSpewpass -> spewpassword.
Chris Porter [Fri, 5 Sep 2008 18:18:44 +0000 (19:18 +0100)] 
Spewpass -> spewpassword.

16 years agoDon't allow Q@CServe.quakenet.org for email for Q.
Chris Porter [Thu, 4 Sep 2008 18:32:57 +0000 (19:32 +0100)] 
Don't allow Q@CServe.quakenet.org for email for Q.

16 years agodeluser now required a reason.
Chris Porter [Thu, 4 Sep 2008 18:31:41 +0000 (19:31 +0100)] 
deluser now required a reason.

16 years agoRevert escaping changes, need to be cleverer, hmm...
Chris Porter [Wed, 3 Sep 2008 15:12:24 +0000 (16:12 +0100)] 
Revert escaping changes, need to be cleverer, hmm...

16 years agoMerge.
Chris Porter [Sat, 30 Aug 2008 23:03:51 +0000 (00:03 +0100)] 
Merge.

16 years agoFix typo in newsearch.
Chris Porter [Sat, 30 Aug 2008 23:03:22 +0000 (00:03 +0100)] 
Fix typo in newsearch.

16 years agooverflow in G's welcome command
Paul [Sat, 30 Aug 2008 17:22:33 +0000 (18:22 +0100)] 
overflow in G's welcome command

16 years agomerge
Paul [Sat, 30 Aug 2008 16:31:26 +0000 (17:31 +0100)] 
merge

16 years agooutput tree is part of context ;/
Paul [Sat, 30 Aug 2008 16:30:19 +0000 (17:30 +0100)] 
output tree is part of context ;/

16 years agotrigger HOOK_CHANSERV_DBLOADED after loading maillocks/domains and not before
Paul [Sat, 30 Aug 2008 16:26:13 +0000 (17:26 +0100)] 
trigger HOOK_CHANSERV_DBLOADED after loading maillocks/domains and not before

16 years agoMerge.
Chris Porter [Sat, 30 Aug 2008 15:09:43 +0000 (16:09 +0100)] 
Merge.

16 years agolots of changes to lua:
Chris Porter [Sat, 30 Aug 2008 14:46:00 +0000 (15:46 +0100)] 
lots of changes to lua:
  - fix path for lua 5.1
  - fix memory leak with bot nickname
  - add botnick() function
  - fix sstring modification bug in loadscript
  - bump version

16 years ago3 fixes to my newsearch stuff:
Paul [Fri, 29 Aug 2008 19:30:20 +0000 (20:30 +0100)] 
3 fixes to my newsearch stuff:

a) only allow inclusion of newsearch.h once

b) registering a command should just 'cheat'  and access raw tree instead of calling registersearchterm - otherwise global commands are not treated
as such

c) we need to delete the command from the main searchCmdTree when unregistering it

16 years agoMove CC line up in build.mk.in so settings.mk can replace it.
Chris Porter [Fri, 29 Aug 2008 13:05:20 +0000 (14:05 +0100)] 
Move CC line up in build.mk.in so settings.mk can replace it.

16 years agoFix a potential buffer overflow exploit I just introduced, this entire file is full...
Chris Porter [Fri, 29 Aug 2008 12:57:09 +0000 (13:57 +0100)] 
Fix a potential buffer overflow exploit I just introduced, this entire file is full of potential problem areas!

16 years agoNow accounthistory is updated in every function that touches email addresses or passw...
Chris Porter [Fri, 29 Aug 2008 12:31:51 +0000 (13:31 +0100)] 
Now accounthistory is updated in every function that touches email addresses or passwords.

16 years agoAdd cidr command to newsearch.
Chris Porter [Thu, 28 Aug 2008 23:16:24 +0000 (00:16 +0100)] 
Add cidr command to newsearch.

16 years agoMerge.
Chris Porter [Thu, 28 Aug 2008 22:09:22 +0000 (23:09 +0100)] 
Merge.

16 years agoFix quoting bug in newsearch.
Chris Porter [Thu, 28 Aug 2008 21:49:48 +0000 (22:49 +0100)] 
Fix quoting bug in newsearch.

16 years agonewsearch unescaping logic relocated so it works on most commands.
Chris Porter [Thu, 28 Aug 2008 21:10:43 +0000 (22:10 +0100)] 
newsearch unescaping logic relocated so it works on most commands.

16 years agosstring.h not in .hgignore
Chris Porter [Thu, 28 Aug 2008 21:10:12 +0000 (22:10 +0100)] 
sstring.h not in .hgignore

16 years agons-{gline,kill,notice} message logic is now not quite as silly.
Chris Porter [Thu, 28 Aug 2008 21:09:49 +0000 (22:09 +0100)] 
ns-{gline,kill,notice} message logic is now not quite as silly.
Refactored ns-gline a bit.

16 years agons-hostmask now makes more sense (realname and realhost options).
Chris Porter [Thu, 28 Aug 2008 21:06:30 +0000 (22:06 +0100)] 
ns-hostmask now makes more sense (realname and realhost options).

16 years agoAST defining macros now have a slightly different structure to make having persistant...
Chris Porter [Thu, 28 Aug 2008 19:29:29 +0000 (20:29 +0100)] 
AST defining macros now have a slightly different structure to make having persistant trees easier.
Update Q/NO for changes, also change a few NO commands to use newsearch.
Also adds compare to NO.

16 years agoFix bug in ast_chansearch where it didn't initalise the cache.
Chris Porter [Thu, 28 Aug 2008 15:11:12 +0000 (16:11 +0100)] 
Fix bug in ast_chansearch where it didn't initalise the cache.

16 years agoSlight alteration to maximum iteration count.
Chris Porter [Thu, 28 Aug 2008 13:23:49 +0000 (14:23 +0100)] 
Slight alteration to maximum iteration count.

16 years agomove more stuff into data/, logs/ respectively. NOTE: we need to move these files...
Paul [Mon, 25 Aug 2008 10:16:21 +0000 (11:16 +0100)] 
move more stuff into data/, logs/ respectively. NOTE: we need to move these files when updating services

16 years agoadd missing help
Paul [Mon, 25 Aug 2008 10:01:00 +0000 (11:01 +0100)] 
add missing help

16 years agomerge
Paul [Mon, 25 Aug 2008 09:10:54 +0000 (10:10 +0100)] 
merge

16 years agoApparently the lines have to be this way round for BSD make to work.
Chris Porter [Mon, 25 Aug 2008 00:43:34 +0000 (01:43 +0100)] 
Apparently the lines have to be this way round for BSD make to work.

16 years agoMerge.
Chris Porter [Mon, 25 Aug 2008 00:39:19 +0000 (01:39 +0100)] 
Merge.

16 years agoUpdate .hgignore.
Chris Porter [Mon, 25 Aug 2008 00:38:46 +0000 (01:38 +0100)] 
Update .hgignore.

16 years agoFix MORE warnings.
Chris Porter [Mon, 25 Aug 2008 00:36:39 +0000 (01:36 +0100)] 
Fix MORE warnings.

16 years agoFix bug in the topic handler.
Chris Porter [Mon, 25 Aug 2008 00:21:39 +0000 (01:21 +0100)] 
Fix bug in the topic handler.

16 years agoFix bashes lame syntax in a Makefile, fix S' Makefile and fix irc.c's signedness...
Chris Porter [Mon, 25 Aug 2008 00:07:42 +0000 (01:07 +0100)] 
Fix bashes lame syntax in a Makefile, fix S' Makefile and fix irc.c's signedness for setnettime.

16 years agoAdd cumodes to newsearch.
Chris Porter [Mon, 25 Aug 2008 00:04:03 +0000 (01:04 +0100)] 
Add cumodes to newsearch.

16 years agoMerge
Cruicky [Sun, 24 Aug 2008 23:39:26 +0000 (00:39 +0100)] 
Merge

16 years agoRevert to previous R behaviour
Cruicky [Sun, 24 Aug 2008 23:38:44 +0000 (00:38 +0100)] 
Revert to previous R behaviour

16 years agoYou can now do make sstring-new and hooks-new.
Chris Porter [Sun, 24 Aug 2008 23:11:24 +0000 (00:11 +0100)] 
You can now do make sstring-new and hooks-new.
make distclean now rm's events.c/hooks.c/sstring.c/h.

16 years agomerge
Paul [Sun, 24 Aug 2008 22:53:14 +0000 (23:53 +0100)] 
merge

16 years agohelp changes
Paul [Sun, 24 Aug 2008 22:52:37 +0000 (23:52 +0100)] 
help changes

16 years agoprereload was destroying sstrings.
Chris Porter [Sun, 24 Aug 2008 22:48:25 +0000 (23:48 +0100)] 
prereload was destroying sstrings.

16 years agoFix more printf style warnings.
Chris Porter [Sun, 24 Aug 2008 22:11:54 +0000 (23:11 +0100)] 
Fix more printf style warnings.

16 years agoMerge+fix intmax_t issues under FreeBSD.
Chris Porter [Sun, 24 Aug 2008 22:10:26 +0000 (23:10 +0100)] 
Merge+fix intmax_t issues under FreeBSD.

16 years agoMerge.
Chris Porter [Sun, 24 Aug 2008 22:06:50 +0000 (23:06 +0100)] 
Merge.

16 years agoAdd new hooking system with priority support.
Chris Porter [Sun, 24 Aug 2008 22:06:21 +0000 (23:06 +0100)] 
Add new hooking system with priority support.

16 years agofix last 2 warnings
Paul [Sun, 24 Aug 2008 20:45:52 +0000 (21:45 +0100)] 
fix last 2 warnings

16 years agoshould always be %jd and cast to intmax_t to stop warning on 32bit (gcc 4.2.3) -warni...
Paul [Sun, 24 Aug 2008 19:53:39 +0000 (20:53 +0100)] 
should always be %jd and cast to intmax_t to stop warning on 32bit (gcc 4.2.3) -warning: format ‘%jd’ expects
type ‘intmax_t’, but argument 4 has type ‘time_t’

16 years agomerge
Paul [Sun, 24 Aug 2008 19:25:09 +0000 (20:25 +0100)] 
merge

16 years agoFirst stab at help for all commands - we'll probably need to reword these as we work...
Paul [Sun, 24 Aug 2008 18:51:59 +0000 (19:51 +0100)] 
First stab at help for all commands - we'll probably need to reword these as we work out who target audience is
etc

16 years agoMerge.
splidge [Sun, 24 Aug 2008 15:51:55 +0000 (16:51 +0100)] 
Merge.

16 years agoMerge.
splidge [Sun, 24 Aug 2008 15:50:16 +0000 (16:50 +0100)] 
Merge.

16 years agoFixed the channel warnings in op.c and voice.c that were working more by luck than...
splidge [Sun, 24 Aug 2008 15:49:27 +0000 (16:49 +0100)] 
Fixed the channel warnings in op.c and voice.c that were working more by luck than judgement (treating a nick * and a char *).

16 years agomerge
Paul [Sun, 24 Aug 2008 15:45:12 +0000 (16:45 +0100)] 
merge

16 years agoMerge.
Chris Porter [Sun, 24 Aug 2008 15:23:50 +0000 (16:23 +0100)] 
Merge.