]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
16 years agobump version number
Chris Porter [Thu, 22 Nov 2007 16:17:09 +0000 (16:17 +0000)] 
bump version number
replace settings table with a more useful settings table
version reply is now stored in the settings table
sanitise the input for phrase names and version replies

16 years agoRefactor T's glining code as it's a complete nightmare.
Chris Porter [Thu, 22 Nov 2007 15:49:11 +0000 (15:49 +0000)] 
Refactor T's glining code as it's a complete nightmare.

16 years agoMerge.
Chris Porter [Sun, 4 Nov 2007 02:45:53 +0000 (02:45 +0000)] 
Merge.

16 years agoAllow local.in to define MAXNICKEXTS.
Chris Porter [Sun, 4 Nov 2007 02:44:12 +0000 (03:44 +0100)] 
Allow local.in to define MAXNICKEXTS.

16 years agorequest was not checking the return code of getnickext, which really broke Z, added...
Chris Porter [Sun, 4 Nov 2007 02:41:18 +0000 (03:41 +0100)] 
request was not checking the return code of getnickext, which really broke Z, added error check.

16 years agoShould be using double indirection here.
Chris Porter [Sun, 4 Nov 2007 00:44:12 +0000 (00:44 +0000)] 
Should be using double indirection here.

16 years agoCleanup.
Chris Porter [Sat, 3 Nov 2007 22:53:12 +0000 (22:53 +0000)] 
Cleanup.

16 years agoMake nterfacer's config file syntax sane.
Chris Porter [Sat, 3 Nov 2007 22:44:14 +0000 (22:44 +0000)] 
Make nterfacer's config file syntax sane.

16 years agoCleanup dependencies.
Chris Porter [Sat, 3 Nov 2007 22:23:35 +0000 (22:23 +0000)] 
Cleanup dependencies.

16 years agoRemove helix from the tree.
Chris Porter [Wed, 31 Oct 2007 12:00:46 +0000 (12:00 +0000)] 
Remove helix from the tree.

16 years agoesockets now supports new protocol.
Chris Porter [Wed, 31 Oct 2007 11:58:08 +0000 (11:58 +0000)] 
esockets now supports new protocol.
Rewritten all the parsers, now using dynamic memory allocation, it's a lot less efficient (well, if allocating 16 bytes is a problem), but it's a LOT simpler.
Need to add limits to prevent people using all the RAM.

16 years agoNow using protocol v3.
Chris Porter [Wed, 31 Oct 2007 00:32:03 +0000 (00:32 +0000)] 
Now using protocol v3.
Seems to authenticate correctly.

BROKEN BUILD: esockets modifications are not complete.

16 years agoAdd SHA2 to the library.
Chris Porter [Tue, 30 Oct 2007 17:21:47 +0000 (17:21 +0000)] 
Add SHA2 to the library.

16 years agoAdd Rijndael code.
Chris Porter [Tue, 30 Oct 2007 14:15:40 +0000 (14:15 +0000)] 
Add Rijndael code.
Update .hgignores.
Move newserv.conf to newserv.conf.example.

17 years agoA few (mostly cosmetic) changes to the fakeuser module - failed to find a possible...
Tim Gordon [Fri, 31 Aug 2007 23:58:07 +0000 (00:58 +0100)] 
A few (mostly cosmetic) changes to the fakeuser module - failed to find a possible bug though

17 years agoMerge.
splidge [Mon, 30 Jul 2007 10:53:45 +0000 (11:53 +0100)] 
Merge.

17 years agoAvoid triggering invalid HOOK_CHANNEL_CREATE or HOOK_CHANNEL_JOINs
splidge [Mon, 30 Jul 2007 10:52:01 +0000 (11:52 +0100)] 
Avoid triggering invalid HOOK_CHANNEL_CREATE or HOOK_CHANNEL_JOINs

When a channel is created in response to a join or create, we send out the
HOOK_CHANNEL_NEWCHANNEL message.  Some things (e.g. Q9) might choose to
kick the user off, thus destroying the channel, in response to this.  In
such an event, sending HOOK_CHANNEL_CREATE or HOOK_CHANNEL_JOIN out with
a now invalid channel pointer can cause trouble, so don't do it.

Note there is the potential problem that the chanindex * can become
"invalid" when the channel is destroyed; in practice this should not be a
problem because (a) Usually something else will be hanging off the chanindex
if it has decided to kick the user out! and (b) chanindex's are allocated
using a recycling pool allocator, so even if the chanindex has been free'd
it will still be a valid pointer.

17 years agoMerge
Chris Porter [Wed, 18 Jul 2007 02:53:47 +0000 (03:53 +0100)] 
Merge

17 years agoAdd some severe flood protection to regexgline.
Chris Porter [Wed, 18 Jul 2007 02:47:53 +0000 (03:47 +0100)] 
Add some severe flood protection to regexgline.
Add umode support to lua's pushers.

17 years agoAdded "chanprofile" module.
splidge [Tue, 10 Jul 2007 22:12:32 +0000 (23:12 +0100)] 
Added "chanprofile" module.

17 years agoMerged.
splidge [Tue, 10 Jul 2007 22:11:38 +0000 (23:11 +0100)] 
Merged.

17 years agoAdded "channels" command (returns number of channels user is on for nicks)
splidge [Tue, 10 Jul 2007 22:11:10 +0000 (23:11 +0100)] 
Added "channels" command (returns number of channels user is on for nicks)

17 years agoIt's not necessary to scan port 559 for socks4 more than once.
splidge [Sat, 7 Jul 2007 16:32:36 +0000 (17:32 +0100)] 
It's not necessary to scan port 559 for socks4 more than once.

17 years agoTidied up some gratuitous malloc-failure code
splidge [Fri, 6 Jul 2007 10:32:51 +0000 (11:32 +0100)] 
Tidied up some gratuitous malloc-failure code

17 years agoUpdated proxyscan to use nsmalloc()
splidge [Fri, 6 Jul 2007 10:17:04 +0000 (11:17 +0100)] 
Updated proxyscan to use nsmalloc()

17 years agoAdded capability to pqsql module to use default unix socket.
splidge [Thu, 5 Jul 2007 12:24:58 +0000 (13:24 +0100)] 
Added capability to pqsql module to use default unix socket.

Updated pqsql so that if a host of "UNIX" is specified it will not pass
hostname/port information to the connect call, causing the postgres library
to fall back on the default unix domain socket.  This avoids the need to
specify the unix socket path in the newserv config file - desireable since
it can vary depending on the postgres installation.

The comparison is case sensitive so if your DB host is really called "unix"
then specifying the name in lowercase will cause it to connect via tcp as
before.

Also made "UNIX" the default hostname.

Also included the strlfunc.h to remove a compiler warning.

17 years agoMerge.
splidge [Thu, 5 Jul 2007 12:10:10 +0000 (13:10 +0100)] 
Merge.

17 years agoMake P join #tlz.
Chris Porter [Thu, 5 Jul 2007 01:58:10 +0000 (03:58 +0200)] 
Make P join #tlz.

17 years agoMerge!
Chris Porter [Thu, 5 Jul 2007 01:13:01 +0000 (02:13 +0100)] 
Merge!

17 years agomerge
Chris Porter [Thu, 5 Jul 2007 01:12:24 +0000 (03:12 +0200)] 
merge

17 years agoCommit pauls changes.
Paul [Thu, 5 Jul 2007 01:11:25 +0000 (03:11 +0200)] 
Commit pauls changes.

17 years agomerge
Chris Porter [Thu, 5 Jul 2007 01:02:46 +0000 (02:02 +0100)] 
merge

17 years agoFix poll handler, memset wasn't reaching the entire new reallocated area.
Chris Porter [Thu, 5 Jul 2007 00:57:56 +0000 (01:57 +0100)] 
Fix poll handler, memset wasn't reaching the entire new reallocated area.

17 years agoattempt 2
Paul [Sun, 1 Jul 2007 18:09:07 +0000 (18:09 +0000)] 
attempt 2

17 years agomerge
Paul [Sun, 1 Jul 2007 14:03:54 +0000 (14:03 +0000)] 
merge

17 years agoadd pqlasterror function for returning connection errors e.g.:
Paul [Sun, 1 Jul 2007 13:59:23 +0000 (13:59 +0000)] 
add pqlasterror function for returning connection errors e.g.:
[2007-07-01 13:49:36] info(pqsql): Attempting database connection: host=localhost port=431 dbname=newserv user=newserv password=moo
[2007-07-01 13:49:36] error(pqsql): Unable to connect to db: could not connect to server: Connection refused    Is the server running on host "localhost" and accepting      TCP/IP connections on port 431?
[2007-07-01 13:49:36] info(core): Loaded module pqsql OK.

17 years agosend host/port in connect string
Paul [Sun, 1 Jul 2007 12:52:56 +0000 (12:52 +0000)] 
send host/port in connect string

17 years agoadd 3 scans, typoe in db sql syntax
Paul [Sat, 30 Jun 2007 18:53:18 +0000 (18:53 +0000)] 
add 3 scans, typoe in db sql syntax

17 years agoshow pqsql error why connect fails
Paul [Sat, 30 Jun 2007 16:07:56 +0000 (16:07 +0000)] 
show pqsql error why connect fails

17 years agoupdate P to use pgsql
Paul [Sat, 30 Jun 2007 15:03:29 +0000 (15:03 +0000)] 
update P to use pgsql

17 years agoMake chanserv build the "newsearch" directory.
splidge [Fri, 22 Jun 2007 22:00:04 +0000 (23:00 +0100)] 
Make chanserv build the "newsearch" directory.

17 years agoBeginnings of chanserv-specific newsearch functionality.
splidge [Fri, 22 Jun 2007 21:59:36 +0000 (22:59 +0100)] 
Beginnings of chanserv-specific newsearch functionality.

For now this just adds the "auth" and "authchans" nicksearch display
formats.

17 years agoFixed nasty bug in NOT.
splidge [Thu, 21 Jun 2007 12:28:36 +0000 (13:28 +0100)] 
Fixed nasty bug in NOT.

17 years agoAdded channel counter to nicksearch.
splidge [Wed, 20 Jun 2007 19:28:01 +0000 (20:28 +0100)] 
Added channel counter to nicksearch.

17 years agoAdded new "channels" nick display format - displays each user's channels.
splidge [Tue, 19 Jun 2007 22:27:29 +0000 (23:27 +0100)] 
Added new "channels" nick display format - displays each user's channels.

17 years agoAdded support for multiple output formats.
splidge [Tue, 19 Jun 2007 22:03:22 +0000 (23:03 +0100)] 
Added support for multiple output formats.

Ported missing output formats from chansearch.

17 years agoRemoved defunct trueval() and falseval().
splidge [Tue, 19 Jun 2007 21:26:48 +0000 (22:26 +0100)] 
Removed defunct trueval() and falseval().

17 years agoAdded (authts) function for nicksearch.
splidge [Sun, 17 Jun 2007 00:58:06 +0000 (01:58 +0100)] 
Added (authts) function for nicksearch.

17 years agoPrevented (kick) from kicking opers or services.
splidge [Thu, 14 Jun 2007 14:43:29 +0000 (15:43 +0100)] 
Prevented (kick) from kicking opers or services.

17 years agoMerge.
splidge [Thu, 14 Jun 2007 13:55:48 +0000 (14:55 +0100)] 
Merge.

17 years agoAdded (kick <username>) function to chansearch.
splidge [Thu, 14 Jun 2007 13:53:58 +0000 (14:53 +0100)] 
Added (kick <username>) function to chansearch.

17 years agoI think this should be bitlen not MAXBITS
Paul [Tue, 12 Jun 2007 22:48:57 +0000 (22:48 +0000)] 
I think this should be bitlen not MAXBITS

17 years agoshow duration header for chanlevhistory
Paul [Sat, 9 Jun 2007 13:57:20 +0000 (13:57 +0000)] 
show duration header for chanlevhistory

17 years agoUpdate lastuse(join) information for a channel if a user is on a channel when they...
Paul [Sat, 9 Jun 2007 12:48:32 +0000 (12:48 +0000)] 
Update lastuse(join) information for a channel if a user is on a channel when they AC token is set

17 years agoshould be j not i
Paul [Sat, 9 Jun 2007 00:33:54 +0000 (00:33 +0000)] 
should be j not i

17 years agoMerge.
splidge [Fri, 8 Jun 2007 22:15:28 +0000 (23:15 +0100)] 
Merge.

17 years agoAdded "giveowner" command.
splidge [Fri, 8 Jun 2007 22:15:01 +0000 (23:15 +0100)] 
Added "giveowner" command.

17 years agoUpdated deregisterlocaluser.
splidge [Fri, 8 Jun 2007 22:14:17 +0000 (23:14 +0100)] 
Updated deregisterlocaluser.

Now has correct default reason.
Also made it trigger the HOOK_NICK_QUIT.

17 years agoAdded reason support for ns-gline.c and ns-kill.c
Ian Barker [Thu, 7 Jun 2007 10:47:49 +0000 (11:47 +0100)] 
Added reason support for ns-gline.c and ns-kill.c

17 years agoAdded list of commands from old Q
splidge [Wed, 6 Jun 2007 19:22:18 +0000 (20:22 +0100)] 
Added list of commands from old Q

17 years agofix stupid mistake when determining the size of the channel in gline/kill ...
Ian Barker [Tue, 5 Jun 2007 23:22:29 +0000 (00:22 +0100)] 
fix stupid mistake when determining the size of the channel in gline/kill ...

17 years agoMerged.
splidge [Tue, 5 Jun 2007 22:52:41 +0000 (23:52 +0100)] 
Merged.

17 years agoNewsearch overhauled.
splidge [Tue, 5 Jun 2007 22:16:02 +0000 (23:16 +0100)] 
Newsearch overhauled.

Removed the confusion of having both a return type specified in each node
and the return type being passed in on execute.

Now each node should always return the type indicated in its "returntype"
member.  Nodes who want its callees to return a certain type can call the
new "coerceNode()" to insert a conversion node as necessary to convert
types.  Note that coerceNode() has no overhead if the node already returns
the correct type.

The "type" parameter passed to search execute functions has been removed.

All existing modules have been rewritten to honour these rules, in a lot of
cases this means ripping out useless code to return different types (and as
a side-effect it has fixed all problems where a node was unable to correctly
return some types).  Sadly some nodes (eq, lt, gt) have got a bit messier as
they now need to coerce each subsequent parameter to match the type of the
first parameter.

Also fixed up some of the channel nodes to just return the relevant piece of
data rather than a BOOL acquired by performing some arbitrary operation on
that data.

Added the (length) function which returns the length of its input string.

Removed the (namelen) function as you can now call (length (name)) - or, to
reproduce the old function, (gt (length (name)) <constant>) which will
return all channel names above a constant length.

17 years agomodifed ns-gline.c and ns-kill.c to work in newsearch's chansearch aswell as nicksearch
Ian Barker [Tue, 5 Jun 2007 16:42:06 +0000 (17:42 +0100)] 
modifed ns-gline.c and ns-kill.c to work in newsearch's chansearch aswell as nicksearch

17 years agoMerged.
splidge [Mon, 4 Jun 2007 22:06:42 +0000 (23:06 +0100)] 
Merged.

17 years agoAdded (+ enabled) authedpct functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 21:48:15 +0000 (22:48 +0100)] 
Added (+ enabled) authedpct functionality in newsearch's chansearch

17 years agoAdded (+ enabled) uniquehostpct functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 21:38:45 +0000 (22:38 +0100)] 
Added (+ enabled) uniquehostpct functionality in newsearch's chansearch

17 years agoAdded (+ enabled) oppct functionality in newsearch's chansearch (also fixed a typo)
Ian Barker [Mon, 4 Jun 2007 21:24:13 +0000 (22:24 +0100)] 
Added (+ enabled) oppct functionality in newsearch's chansearch (also fixed a typo)

17 years agoAdded quoting and escaping support.
splidge [Mon, 4 Jun 2007 21:07:42 +0000 (22:07 +0100)] 
Added quoting and escaping support.

17 years agoAdded (+ enabled) topic functionality in newsearch's chansearch (also changed help...
Ian Barker [Mon, 4 Jun 2007 21:04:51 +0000 (22:04 +0100)] 
Added (+ enabled) topic functionality in newsearch's chansearch (also changed help note in ns-name.c)

17 years agoAdded (+ enabled) name functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:25:58 +0000 (21:25 +0100)] 
Added (+ enabled) name functionality in newsearch's chansearch

17 years agoAdded (+ enabled) namelen functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:11:12 +0000 (21:11 +0100)] 
Added (+ enabled) namelen functionality in newsearch's chansearch

17 years agoAdded (+ enabled) size functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:00:27 +0000 (21:00 +0100)] 
Added (+ enabled) size functionality in newsearch's chansearch

17 years agoAdded (+ enabled) services functionality in newsearch's chansearch (and fixed a typo!)
Ian Barker [Mon, 4 Jun 2007 19:47:46 +0000 (20:47 +0100)] 
Added (+ enabled) services functionality in newsearch's chansearch (and fixed a typo!)

17 years agoAdded (+ enabled) exists functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 18:59:17 +0000 (19:59 +0100)] 
Added (+ enabled) exists functionality in newsearch's chansearch

17 years agomodified ns-nick.c to now work in both nicksearch and chansearch
Ian Barker [Mon, 4 Jun 2007 18:31:19 +0000 (19:31 +0100)] 
modified ns-nick.c to now work in both nicksearch and chansearch

17 years agoMerge
splidge [Mon, 4 Jun 2007 10:23:35 +0000 (11:23 +0100)] 
Merge

17 years agoMake burst joins work properly for -j channels.
splidge [Mon, 4 Jun 2007 10:22:58 +0000 (11:22 +0100)] 
Make burst joins work properly for -j channels.

With the change to the bursting logic it's now OK to have chanflag -j
channels set +ik - legit users can start the channel, other users are
netrider kicked.

17 years agoTidied up the joining behaviour a bit.
splidge [Mon, 4 Jun 2007 10:09:57 +0000 (11:09 +0100)] 
Tidied up the joining behaviour a bit.

A few changes:

 * Burst with the default modes as well as the forcemodes (unless some of
   the default modes are denied, of course).

 * If there's only one user on the channel and they are known, don't burst
   with +i or +k - this avoids kicking the users off their own channels.
   Obviously if the user isn't known they shouldn't be joining so we leave
   the modes set to get rid of them

 * Ripped out the #ifdef 0'd code that used to try and deal with imposters -
   there is no need for this now that we can burst into channels.

17 years agoAdded CHANMODE_DEFAULT to indicate the default modes.
splidge [Mon, 4 Jun 2007 10:01:46 +0000 (11:01 +0100)] 
Added CHANMODE_DEFAULT to indicate the default modes.

17 years agoAdded initial support for LISP style chansearch in newsearch (replacing old chansearch.c)
Ian Barker [Sun, 3 Jun 2007 18:35:31 +0000 (19:35 +0100)] 
Added initial support for LISP style chansearch in newsearch (replacing old chansearch.c)

17 years agoMerged
splidge [Sun, 3 Jun 2007 18:04:27 +0000 (19:04 +0100)] 
Merged

17 years agobah
Paul [Sun, 3 Jun 2007 18:34:06 +0000 (18:34 +0000)] 
bah

17 years agoUpdated the authhistory table to include a reason field.
splidge [Sun, 3 Jun 2007 18:03:22 +0000 (19:03 +0100)] 
Updated the authhistory table to include a reason field.

17 years agoMoved some database code from chanservstdcmds.c into their relevant command
splidge [Sun, 3 Jun 2007 18:02:55 +0000 (19:02 +0100)] 
Moved some database code from chanservstdcmds.c into their relevant command
files.

Added authhistory command.

17 years agoCaused cs_checkaccess to trigger a privilege check even if privs is 0. This
splidge [Sun, 3 Jun 2007 18:01:44 +0000 (19:01 +0100)] 
Caused cs_checkaccess to trigger a privilege check even if privs is 0.  This
allows for a default bypass to be added (currently set to all opers)

17 years agoRemoved old database functions which went into authtracker.
splidge [Sun, 3 Jun 2007 18:00:51 +0000 (19:00 +0100)] 
Removed old database functions which went into authtracker.

17 years agoFixed nit in localburstontochannel()
splidge [Sun, 3 Jun 2007 18:00:20 +0000 (19:00 +0100)] 
Fixed nit in localburstontochannel()

(it was sending an extra space in burst messages)

17 years agoAdded new nsmalloc pool for authtracker
splidge [Sun, 3 Jun 2007 17:59:26 +0000 (18:59 +0100)] 
Added new nsmalloc pool for authtracker

17 years agoNew authtracker module.
splidge [Sun, 3 Jun 2007 17:58:51 +0000 (18:58 +0100)] 
New authtracker module.

This module is responsible for keeping the authhistory table up to date, but
has been written to be mostly independent of chanserv itself (the only
explicit reference is to chanservnext - and that can be removed once
userids-on-account are supported).

17 years agoAdded a couple of hook triggers. Also correctly set the init status
splidge [Sun, 3 Jun 2007 17:57:12 +0000 (18:57 +0100)] 
Added a couple of hook triggers.  Also correctly set the init status
variable when startup is complete.

17 years agoMade it so quit reasons are correctly passed on.
splidge [Sun, 3 Jun 2007 17:56:11 +0000 (18:56 +0100)] 
Made it so quit reasons are correctly passed on.

17 years agoCompiler warning fix.
splidge [Sun, 3 Jun 2007 17:55:54 +0000 (18:55 +0100)] 
Compiler warning fix.

17 years agoRemoved existing auth tracking code pending addition of new stuff.
splidge [Sun, 3 Jun 2007 17:55:27 +0000 (18:55 +0100)] 
Removed existing auth tracking code pending addition of new stuff.

17 years agoChanged the hook code so that if one user of a hook deletes their callback
splidge [Sun, 3 Jun 2007 17:54:03 +0000 (18:54 +0100)] 
Changed the hook code so that if one user of a hook deletes their callback
while the hook is running it doesn't prevent another user receiving the
hook.

This is done by setting a handler to NULL instead of deleting it when there
are hook callbacks active.  When a new hook is registered, any NULL slots
are replaced before expanding the array.

17 years agoMerged.
splidge [Sun, 3 Jun 2007 17:21:48 +0000 (18:21 +0100)] 
Merged.

17 years agorenamed failedinit -> cffailedinit
Paul [Sun, 3 Jun 2007 16:20:39 +0000 (16:20 +0000)] 
renamed failedinit -> cffailedinit

17 years agoMerged.
splidge [Sun, 3 Jun 2007 14:11:26 +0000 (15:11 +0100)] 
Merged.

17 years agoAdded HOOK_SERVER_LINKED message when a server enters the LS_LINKED state.
splidge [Sun, 3 Jun 2007 13:37:07 +0000 (14:37 +0100)] 
Added HOOK_SERVER_LINKED message when a server enters the LS_LINKED state.

17 years agotidy up from last nights bits, move chanservdb_updates -> chanserv
Paul [Sun, 3 Jun 2007 12:51:54 +0000 (12:51 +0000)] 
tidy up from last nights bits, move chanservdb_updates -> chanserv